From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78d60789968fab19 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-26 12:02:50 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: rc3/rc3.d problems Message-ID: Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: Date: Sat, 26 Nov 1994 19:59:09 GMT In article , Tim Llewellyn wrote: > I've been having fun recently with rc3.d and init.d, for httpd. I run httpd from inetd.conf, myself. Of course that makes each connection a little slower, but if you're not doing a lot of www service (we're behind a firewall, so we aren't) then you don't need to run it as a daemon. You should be able to run it from rc3.d/S99*, if it backgrounds itself properly. I personally don't like the tendency of BSD software to background itself, and tend to run through the old double-fork-and-setpgrp myself in a wrapper (I call it detach). Once you do that it doesn't matter if you're doing it from a script or what. > What I have done is also add a line to the /etc/inittab file to > start the daemon. That will work, but then you need to set the environment right yourself. In general you should start stuff from inittab that runs to completion, not daemons... the main point of inittab is that it lets init manage a bevy of scripts and sessions. -- Peter da Silva `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"