From 52216718f595b085f57175369f81df5b0093c323 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 21 Oct 2009 21:33:41 +0200 Subject: [PATCH] logrotate: Fix postrotate script of snort's logs. --- config/etc/logrotate.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf index 369efe9112..637179987b 100644 --- a/config/etc/logrotate.conf +++ b/config/etc/logrotate.conf @@ -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 } -- 2.39.2