docs/93522: [patch] use rc.d script in example describing how to restart mountd in nework-servers chapter
Simon L. Nielsen
simon at FreeBSD.org
Sat Feb 18 13:00:22 UTC 2006
The following reply was made to PR docs/93522; it has been noted by GNATS.
From: "Simon L. Nielsen" <simon at FreeBSD.org>
To: Dmitry Morozovsky <marck at rinet.ru>
Cc: Christian Brueffer <chris at unixpages.org>,
freebsd-gnats-submit at FreeBSD.org
Subject: Re: docs/93522: [patch] use rc.d script in example describing how to restart mountd in nework-servers chapter
Date: Sat, 18 Feb 2006 13:40:03 +0100
Content-Type: text/plain; charset=us-ascii
On 2006.02.18 14:52:31 +0300, Dmitry Morozovsky wrote:
> On Sat, 18 Feb 2006, Christian Brueffer wrote:
> CB> > - <screen>&prompt.root; <userinput>kill -HUP `cat /var/run/mo=
> CB> d`</userinput></screen>
> CB> > + <screen>&prompt.root; <userinput>/etc/rc.d/mountd restart</=
> CB> ut></screen>
> CB> > =3D20
> CB> =20
> CB> Sending HUP to a process is not the same as restarting is. In my bo=
> CB> this specific section is fine as it is.
> Yes. I think `/etc/rc.d/mountd reload' whould be used; however, this is=
Sending a HUP signal manually seems a bit silly to me now that we have
the nice way of doing it with the rc.d script. Being able to simply
write /etc/rc.d/foo restart/reload is one of the things I really miss
when using 4.X systems.
Also since, for not quite as experienced people, remembering the
difference in how to reload/restart different daemons can be hard. At
least I remember in my early UNIX days that I had to check the head of
/etc/inetd.conf about how to reload it each time.
Just my 0.02c.
> depending on mountd_enable rc.conf setting which should be done explicitl=
How about saying something like:
See the rc.d chapter for more information on controling services.
Or something like that? Then we don't have to duplicate the
explanation about _enable=3D"YES".
Simon L. Nielsen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-doc