# uncomment this if you want your log files compressed
compress
+# packages drop log rotation information into this directory
+include /etc/logrotate.d
+
# wtmp
/var/log/wtmp {
weekly
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
}