X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=config%2Fetc%2Flogrotate.conf;h=d38570de5526d5113ff691c1b372696379168e62;hb=8bbcfa1152f87e8092c91284e25184ae52914e6d;hp=0f171d6448e6457493b7752c9744fef7a52a30b2;hpb=46c01c0912ff4e3c16c90b569991e6989e27436f;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf index 0f171d6448..d38570de55 100644 --- a/config/etc/logrotate.conf +++ b/config/etc/logrotate.conf @@ -10,6 +10,9 @@ create # 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 @@ -32,9 +35,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 } @@ -65,7 +68,7 @@ compress endscript } -/var/log/messages /var/log/boot.log /var/log/dhcpcd.log { +/var/log/messages /var/log/bootlog /var/log/dhcpcd.log { create 664 root syslogd sharedscripts ifempty