From 477aa3c43ea9fa2c54ee4cf757baab5dd30c9d8d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 22 Feb 2007 16:22:24 +0000 Subject: [PATCH] do a kill -9 after kill -s INT to make sure no stubborn processes stick around git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6993 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/bin/osrf_ctl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSRF/bin/osrf_ctl.sh b/OpenSRF/bin/osrf_ctl.sh index ef7ce0ee3c..02fb9a6fdb 100755 --- a/OpenSRF/bin/osrf_ctl.sh +++ b/OpenSRF/bin/osrf_ctl.sh @@ -89,7 +89,9 @@ function do_action { pid=$(cat $pidfile); echo "Stopping $item : $pid"; - kill -s INT $pid; + kill -s INT $pid 2> /dev/null; + sleep 1; + kill -9 $pid 2> /dev/null; rm -f $pidfile; fi; -- 2.11.0