2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00
bind/bin/tests/system/start.sh

31 lines
455 B
Bash
Raw Normal View History

2000-05-15 22:53:15 +00:00
#!/bin/sh
#
# Start name servers for running system tests.
#
cd $1
for d in ns*
do
(
cd $d &&
rm -f *.jnl *.bk named.run &&
if test -f named.pid
then
if kill -0 `cat named.pid` 2>/dev/null
then
echo "$0: named pid `cat named.pid` still running" >&2
exit 1
else
rm -f named.pid
fi
fi
$NAMED -c named.conf -d 99 -g >named.run 2>&1 & &&
while test ! -f named.pid
do
sleep 1
done
)
done