From 0b650d78e25a51fba8677b852fecb4f44f950723 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 9 Jan 2009 13:49:51 +0000 Subject: [PATCH] - add flush-logs Changed files: pound.init -> 1.18 --- pound.init | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pound.init b/pound.init index 8351bc7..21f3278 100644 --- a/pound.init +++ b/pound.init @@ -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 -- 2.44.0