Subject: Re: Stopping dhclient does not restore /etc/resolv.conf
To: Gregoire Sutre <sutre@labri.fr>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 10/29/2003 11:37:43
On Wed, Oct 29, 2003 at 12:32:32AM +0100, Gregoire Sutre wrote:
  | So I intend to add the following line in /etc/rc.d/dhclient:
  | 
  | stop_cmd="$command -r"
  |
  | where $command is previously set to /sbin/dhclient (in
  | /etc/rc.d/dhclient).
  |
  | As I'm new to NetBSD, I would appreciate if an experienced user
  | could confirm that I won't introduce problems with this "fix".

That should work; you won't have a "nice" check if dhclient is running
and "forcestop" may not function the same way, but in general these
shouldn't be large problems.

I suggest actually making that change in /etc/rc.conf.d/dhclient,
so /etc/rc.d/dhclient can be upgraded by an operating system upgrade
and you won't lose your functionality change.


Luke.