Date: Tue, 23 Nov 1999 19:41:11 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Joseph Lee <nugundam@nerv.nu> Cc: freebsd-questions@freebsd.org Subject: Re: natd restarting remotely Message-ID: <19991123194111.B2126@strontium.scientia.demon.co.uk> In-Reply-To: <Pine.BSF.4.10.9911231027320.30882-100000@greenwood3.nerv.nu> References: <Pine.BSF.4.10.9911231027320.30882-100000@greenwood3.nerv.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
Joseph Lee wrote:
> Is there a graceful way to restart natd remotely such as say with a HUP?
>
> I've tried killall natd; natd -f natd.rc, but that just started up a
> second natd while the first 1 hadn't died yet.
>
> Maybe killall -9 natd; natd -f natd.rc?
Have you tried something like `killall natd; sleep $n; natd -f natd.rc`
for some value of n which would probably allow the first natd to die? I
don't use natd, so I don't even know if it responds to SIGTERM, so
forgive me if this is a silly suggestion. SIGKILL should *really* be a
last resort.
--
Ben Smithurst | PGP: 0x99392F7D
ben@scientia.demon.co.uk | key available from keyservers and
| ben+pgp@scientia.demon.co.uk
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991123194111.B2126>
