From owner-freebsd-questions Thu Aug 16 3:49:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id A3B1337B406 for ; Thu, 16 Aug 2001 03:49:55 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 27821 invoked by uid 100); 16 Aug 2001 10:49:55 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15227.42323.60793.285858@guru.mired.org> Date: Thu, 16 Aug 2001 05:49:55 -0500 To: Lucas Bergman Cc: questions@freebsd.org, ecrim@earthlink.net Subject: Re: Starting Daemons In-Reply-To: <107105227@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 Lucas Bergman 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. 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