From 41dc05d3a1460418c0f9c5fde007bab3364da646 Mon Sep 17 00:00:00 2001 From: areq Date: Wed, 18 Feb 2009 12:45:59 +0000 Subject: [PATCH] - fix logic Changed files: pound.init -> 1.24 --- pound.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pound.init b/pound.init index 2a26d47..e903a3b 100644 --- a/pound.init +++ b/pound.init @@ -61,14 +61,14 @@ any_up() { # check if all of the instances are up all_up() { - local ret=0 instance pidfile + local ret=1 instance pidfile for pidfile in /var/run/pound/*.pid; do [ -f "$pidfile" ] || continue instance=${pidfile#/var/run/pound/} instance=${instance%.pid} is_up $instance && continue - ret=1 + ret=0 done return $ret @@ -121,6 +121,7 @@ stop() { ret=$? done rm -f /var/lock/subsys/pound > /dev/null 2>&1 + rm -f /var/run/pound/$instance.pid > /dev/null 2>&1 else msg_not_running "Pound" fi -- 2.44.0