From owner-freebsd-questions Wed Aug 15 13: 5:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from comp04.prc.uic.edu (comp04.prc.uic.edu [128.248.230.104]) by hub.freebsd.org (Postfix) with SMTP id 9163737B40C for ; Wed, 15 Aug 2001 13:05:15 -0700 (PDT) (envelope-from lucas@comp04.prc.uic.edu) Received: (qmail 18751 invoked by uid 1000); 15 Aug 2001 20:05:37 -0000 Date: Wed, 15 Aug 2001 15:05:37 -0500 From: Lucas Bergman To: Eric Lam Cc: questions@freebsd.org Subject: Re: Starting Daemons Message-ID: <20010815150536.A17588@comp04.prc.uic.edu> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ecrim@earthlink.net on Wed, Aug 15, 2001 at 10:07:10AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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