]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
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 369efe9112ce93c6058b927763cb70b795d1ade5..637179987b95101702157476a6337b8f9ac23571 100644 (file)
@@ -32,9 +32,9 @@ compress
     ifempty
     missingok
     postrotate
     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
 }
 
     endscript
 }