logrotate: Fix postrotate script of snort's logs.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Oct 2009 19:33:41 +0000 (21:33 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Oct 2009 19:33:41 +0000 (21:33 +0200)
config/etc/logrotate.conf

index 369efe9..6371799 100644 (file)
@@ -32,9 +32,9 @@ compress
     ifempty
     missingok
     postrotate
-       /usr/bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
-       /usr/bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
-       /usr/local/bin/restartsnort
+       /bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
+       /bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
+       /etc/init.d/snort restart
     endscript
 }