Add 'restart' of junkbuster service after rotate logfiles.
authorsteudten <steudten@users.sourceforge.net>
Thu, 13 Dec 2001 23:19:43 +0000 (23:19 +0000)
committersteudten <steudten@users.sourceforge.net>
Thu, 13 Dec 2001 23:19:43 +0000 (23:19 +0000)
Better we could use the well known 'kill -HUP', but the handler
isn't there at this time.

junkbuster.logrotate

index 4ac4ca6..6d7ec82 100644 (file)
@@ -35,6 +35,9 @@
 # 
 #  Revisions   :
 #     $Log: junkbuster.logrotate,v $
+#     Revision 1.5  2001/11/05 21:31:51  steudten
+#     Change switch mode from weekly to size 1M
+#
 #     Revision 1.4  2001/06/28 13:30:22  sarantis
 #     add missingok for the jarfile entry
 #
 /var/log/junkbuster/logfile {
    compress
    size 1M
+   postrotate
+        /sbin/service junkbuster restart 2> /dev/null || true
+   endscript
 }
 
 /var/log/junkbuster/jarfile {
-  missingok
-  compress
-  size 1M
+   missingok
+   compress
+   size 1M
+   postrotate
+        /sbin/service junkbuster restart 2> /dev/null || true
+   endscript
 }