]> git.pld-linux.org Git - packages/pound.git/commitdiff
- add flush-logs
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 9 Jan 2009 13:49:51 +0000 (13:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pound.init -> 1.18

pound.init

index 8351bc74618f17056d79d88ead86108226eea4fd..21f3278507fb972e839f3115b30d4e0998178e27 100644 (file)
@@ -182,6 +182,21 @@ case "$1" in
   restart|force-reload)
        restart
        ;;
+  flush-logs)
+       if [ -f /var/lock/subsys/pound ]; then
+               for instance in $POUND_INSTANCES; do
+                       show "Rotating Pound logs for %s instance" $instance
+                       killproc --pidfile /var/run/pound/$instance.pid pound -USR1
+                       ret=$?
+                       if [ $ret != 0 ]; then
+                               RETVAL=$ret
+                       fi
+               done
+       else
+               msg_not_running "Pound"
+               RETVAL=7
+       fi
+       ;;
   *)
        msg_usage "$0 {start|stop|restart|force-reload|status} [INSTANCE NAMES]"
        exit 3
This page took 0.118378 seconds and 4 git commands to generate.