]> git.pld-linux.org Git - packages/inn.git/blobdiff - inn.logrotate
- release 11
[packages/inn.git] / inn.logrotate
index db1c7486c2e87830886b60d8953b26c57fed89a7..0269ba5779f7e758593974e7780b7ee8c93976ec 100644 (file)
@@ -1,6 +1,33 @@
 /var/log/news/news.* {
        olddir /var/log/archiv/news
+       create 640 news news
        postrotate
-               /usr/bin/killall -HUP innd
-       endrotate
+               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" || :
+       endscript
+       postrotate
+               ctlinnd -s go "Flushing log and syslog files"
+       endscript
+}
+
+/var/log/news/*log {
+       olddir /var/log/archiv/news
+       create 640 news news
+       prerotate
+               ctlinnd -s pause "Flushing log and syslog files" || :
+       endscript
+       postrotate
+               ctlinnd -s go "Flushing log and syslog files"
+       endscript
 }
This page took 0.032556 seconds and 4 git commands to generate.