Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 15:05:37 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        Eric Lam <ecrim@earthlink.net>
Cc:        questions@freebsd.org
Subject:   Re: Starting Daemons
Message-ID:  <20010815150536.A17588@comp04.prc.uic.edu>
In-Reply-To: <NFBBLKKCLDGIJGPDMDAAMEBPCAAA.ecrim@earthlink.net>; from ecrim@earthlink.net on Wed, Aug 15, 2001 at 10:07:10AM %2B0100
References:  <NFBBLKKCLDGIJGPDMDAAMEBPCAAA.ecrim@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> What is the recommended way of starting a daemon, such as httpd,
> smbd, ftpd, etc...  inet.conf?  rc.d script thingiees, or rc.local?

Start them through /etc/inetd.conf (or some super-server other than
inetd) if it's practical.  An example of where this is not practical
would be a busy web server; the creation of a new process for every
connection would be unacceptable.

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).

Many daemons have two modes, one for startup via a super-server, and
one for startup standalone (via an rc.d script).

Note that rc.local is (essentially) deprecated in favor of rc.d
scripts.

Lucas

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?20010815150536.A17588>