mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Log a message in addition to setting a failure code when kill -TERM doesn't
kill a server.
This commit is contained in:
parent
54b9dc7739
commit
5ddea03e3e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue