From 19612dcc42960c756343d529b38794bdc7c4881a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 26 Feb 1999 03:02:43 +0000 Subject: fix killproc --- rc.d/init.d/functions | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index ab3e22df..daba8c5b 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -100,9 +100,12 @@ killproc() { kill -TERM $pid && success "$base shutdown" || failure "$base shutdown" usleep 100000 if ps h $pid >/dev/null 2>&1 ; then - sleep 3 + sleep 1 if ps h $pid >/dev/null 2>&1 ; then - kill -KILL $pid && success "$base shutdown" || failure "$base shutdown" + sleep 3 + if ps h $pid >/dev/null 2>&1 ; then + kill -KILL $pid && success "$base shutdown" || failure "$base shutdown" + fi fi fi fi -- cgit v1.2.1