Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2001 05:49:55 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Lucas Bergman <lucas@slb.to>
Cc:        questions@freebsd.org, ecrim@earthlink.net
Subject:   Re: Starting Daemons
Message-ID:  <15227.42323.60793.285858@guru.mired.org>
In-Reply-To: <107105227@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Lucas Bergman <lucas@slb.to> types:
> > What is the recommended way of starting a daemon, such as httpd,
> > smbd, ftpd, etc...  inet.conf?  rc.d script thingiees, or rc.local?
> Otherwise, put a script in /usr/local/etc/rc.d that has the executable
> bit set and understands at least a ``start'' argument.  See rc(8).

The rc.d man page is a bit out of date. The scripts will also be
called with a "stop" argument at shutdown time. This can be used to
shut the daemon down cleanly, or ignored. It should not issue an error
message.

On sufficiently old versions of FreeBSD, this doesn't happen. Of
course, on sufficiently old versions, there's no rc.d.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

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?15227.42323.60793.285858>