mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-19 16:44:42 -04:00
24 lines
295 B
Bash
24 lines
295 B
Bash
#!/bin/sh
|
|
#
|
|
# Stop name servers.
|
|
#
|
|
|
|
cd $1
|
|
|
|
for d in ns*
|
|
do
|
|
pidfile="$d/named.pid"
|
|
if [ -f $pidfile ]; then
|
|
kill -TERM `cat $pidfile`
|
|
fi
|
|
done
|
|
|
|
sleep 5
|
|
|
|
for d in ns*
|
|
do
|
|
pidfile="$d/named.pid"
|
|
if [ -f $pidfile ]; then
|
|
kill -KILL `cat $pidfile`
|
|
fi
|
|
done
|