rndc stop
Michael Kjorling
michael at kjorling.com
Fri Sep 21 21:48:25 UTC 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Maybe something like this would do? (Apologize me for the most likely
invalid bash syntax, but you get the idea anyway.)
# shut down named
/usr/sbin/rndc stop
while [ "`/sbin/pidof named`" != "" ]
do
usleep 500000
done
# named has shut down at this point
If you don't have pidof (or similar) on your system, something like
this should do the trick:
#!/bin/sh
echo `ps ax | grep $1 | awk '{print $1}' | sed 's/[^0-9\ ]//g'`
Michael Kjörling
On Sep 21 2001 14:28 -0700, Andy Choi wrote:
> you mean the pid file in /var/lock/subsys? that file is created/deleted by
> the rc script. rndc stop would not remove that file.
>
> thanks anyways.
>
> andy
- --
Michael Kjörling - michael at kjorling.com - PGP: 8A70E33E
Manager Wolf.COM -- Programmer -- Network Administrator
"We must be the change we wish to see" (Mahatma Gandhi)
^..^ Support the wolves in Norway -- go to ^..^
\/ http://home.no.net/ulvelist/protest_int.htm \/
***** Please only send me emails which concern me *****
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For my PGP key: http://michael.kjorling.com/contact/pgp.html
iD8DBQE7q7WtKqN7/Ypw4z4RAv2wAKC2Fzr177pFDaRsB69Ehgn9kYxNBgCfQyrO
gE5zf8LnoJjY9tTYJ91/iV4=
=2q4i
-----END PGP SIGNATURE-----
More information about the bind-users
mailing list