Log a message in addition to setting a failure code when kill -TERM doesn't

kill a server.
This commit is contained in:
Brian Wellington 2000-07-05 23:28:07 +00:00
parent 54b9dc7739
commit 5ddea03e3e

View file

@ -15,7 +15,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: stop.sh,v 1.9 2000/07/05 18:48:56 bwelling Exp $
# $Id: stop.sh,v 1.10 2000/07/05 23:28:07 bwelling Exp $
#
# Stop name servers.
@ -49,6 +49,7 @@ for d in ns*
do
pidfile="$d/named.pid"
if [ -f $pidfile ]; then
echo "I: $d didn't die when sent a SIGTERM"
status=`expr $status + 1`
kill -KILL `cat $pidfile`
fi
@ -58,6 +59,7 @@ for d in lwresd*
do
pidfile="$d/lwresd.pid"
if [ -f $pidfile ]; then
echo "I: $d didn't die when sent a SIGTERM"
status=`expr $status + 1`
kill -KILL `cat $pidfile`
fi