Date: Fri, 17 Jan 1997 06:08:20 -0400 (AST) From: The Hermit Hacker <scrappy@hub.org> To: That Doug Guy <tiller@connectnet.com> Cc: "FreeBSD-questions@freebsd.org" <FreeBSD-questions@freebsd.org> Subject: Re: Crontab for killing and restarting named Message-ID: <Pine.BSF.3.95.970117060757.200M-100000@thelab.hub.org> In-Reply-To: <199701170922.BAA09807@connectnet1.connectnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Jan 1997, That Doug Guy wrote: > Ok, this is driving me nutty. I need to kill named once a day, and then > restart it. First I tried a command line to do this in the crontab, but I couldn't get > that to work, so I decided to use a script. Here is the script that I ended up with: > > #!/bin/sh > PID=`/bin/ps ax | /usr/bin/grep named | /usr/bin/grep -v grep | /usr/bin/awk > '{print $1}'` > /bin/kill -9 ${PID} > /bin/sleep 5 > /usr/sbin/named > have you tried 'named.restart'?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970117060757.200M-100000>