Something like this?
seb
--- functions Sat Feb 17 15:30:11 2001
+++ functions.new Sat Feb 17 15:29:18 2001
@@ -215,12 +215,12 @@
if [ "$notset" = "1" ] ; then
if checkpid $pid 2>&1; then
# TERM first, then KILL if not dead
- kill -TERM $pid
+ kill -TERM $pid > /dev/null 2>&1
usleep 100000
if checkpid $pid && sleep 1 &&
checkpid $pid && sleep 3 &&
checkpid $pid ; then
- kill -KILL $pid
+ kill -KILL $pid > /dev/null 2>&1
usleep 100000
fi
fi
@@ -231,7 +231,7 @@
# use specified level only
else
if checkpid $pid >/dev/null 2>&1; then
- kill $killlevel $pid
+ kill $killlevel $pid > /dev/null 2>&1
RC=$?
[ $RC -eq 0 ] && success "%s %s" $base
$killleve
l || failure "%s %s" $base $killlevel
fi
- Re: [Cooker] killproc() diff Sebastian Dransfeld
- Re: [Cooker] killproc() diff Chmouel Boudjnah
- Re: [Cooker] killproc() diff Sebastian Dransfeld
- Re: [Cooker] killproc() diff Chmouel Boudjnah
- Re: [Cooker] killproc() diff Sebastian Dransfeld
- Re: [Cooker] killproc() diff Chmouel Boudjnah
