]> git.pld-linux.org Git - packages/inn.git/blobdiff - inn.logrotate
- release 11
[packages/inn.git] / inn.logrotate
index 520bb71378f643468d1c6a3d4472d63f50797bd9..0269ba5779f7e758593974e7780b7ee8c93976ec 100644 (file)
@@ -2,14 +2,19 @@
        olddir /var/log/archiv/news
        create 640 news news
        postrotate
-               /usr/bin/killall -HUP syslogd
+               if [ -e /etc/rc.d/init.d/syslog-ng ] ; then
+                       /etc/rc.d/init.d/syslog-ng reload >/dev/null 2>&1
+               elif [ -e /etc/rc.d/init.d/syslog ] ; then
+                       /etc/rc.d/init.d/syslog reload >/dev/null 2>&1
+               fi
        endscript
 }
 
 /var/log/news/news {
        olddir /var/log/archiv/news
+       create 640 news news
        prerotate
-               ctlinnd -s pause "Flushing log and syslog files"
+               ctlinnd -s pause "Flushing log and syslog files" || :
        endscript
        postrotate
                ctlinnd -s go "Flushing log and syslog files"
@@ -18,8 +23,9 @@
 
 /var/log/news/*log {
        olddir /var/log/archiv/news
+       create 640 news news
        prerotate
-               ctlinnd -s pause "Flushing log and syslog files"
+               ctlinnd -s pause "Flushing log and syslog files" || :
        endscript
        postrotate
                ctlinnd -s go "Flushing log and syslog files"
This page took 0.037015 seconds and 4 git commands to generate.