Date: Sat, 17 May 2003 11:20:05 +0200 From: "Doron Shmaryahu" <doron@home.crc.co.za> To: "'Chuck Swiger'" <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: RE: restarting natd Message-ID: <002b01c31c55$8b9017a0$0801a8c0@dman> In-Reply-To: <3EC47C56.4070601@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You could use a basic shell script like this #!/bin/sh killall -9 natd /sbin/natd -u -s -m -a xxx.xxx.xxx.xxx don't forget to run it with a & at the end so it runs in the background this way you don't get disconnected if you are doing it remotely -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Chuck Swiger Sent: 16 May 2003 07:51 AM Cc: freebsd-questions@freebsd.org Subject: Re: restarting natd Hugo Saro wrote: > killall -TERM natd > > check if it's still running (might take some secs to > die) - ps aux | grep natd > > if it ain't showing.. natd -f /path/to/conf If you are connecting remotely, when you kill natd, you will lose your shell and not be able to restart natd from where you are. Even if the subway has gone back from $2.00 to $1.50, on-site visits take time. :-) -Chuck _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002b01c31c55$8b9017a0$0801a8c0>
