From owner-freebsd-newbies Sun Sep 30 10:45:34 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from fe000.worldonline.dk (fe000.worldonline.dk [212.54.64.194]) by hub.freebsd.org (Postfix) with SMTP id 2C03437B40F for ; Sun, 30 Sep 2001 10:45:31 -0700 (PDT) Received: (qmail 31364 invoked by uid 0); 30 Sep 2001 17:45:28 -0000 Received: from 213.237.13.224.adsl.hc.worldonline.dk (HELO NEIGAARD?MOB) (213.237.13.224) by fe000.worldonline.dk with SMTP; 30 Sep 2001 17:45:28 -0000 Date: Sun, 30 Sep 2001 19:46:45 +0200 From: =?ISO-8859-1?B?U/hyZW4gTmVpZ2FhcmQ=?= X-Mailer: The Bat! (v1.51) Reply-To: =?ISO-8859-1?B?U/hyZW4gTmVpZ2FhcmQ=?= X-Priority: 3 (Normal) Message-ID: <172104446956.20010930194645@e-box.dk> To: "Freddie Cash" Cc: fcash@bigfoot.vom, newbies@freebsd.org Subject: Re[2]: automatic start of Apache In-Reply-To: <200109301651.JAA23450@ocis.ocis.net> References: <200109301651.JAA23450@ocis.ocis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sunday, September 30, 2001, 6:51:03 PM, Freddie wrote: FC> First, this is not the right list to be asking technical questions on. This list is for new users to FC> discuss their experiences running FreeBSD (the good, the bad, the ugly if needed). If you are FC> unsure how to phrase a technical question for the freebsd-questions list, then post the info you FC> have and ask for suggestions on making it better here. :) Just an FYI for next time. Ok - Så this question as a newbie one, I will try to avoid the same mistake again. Ok I sent this mail to the group, but I get an error trying to send to you. FC> If you want to be able to control its start/stop/restart a la SysV/Linux, then you can create a FC> simple script and put it in /usr/local/etc/rc.d/ All the executable scripts in this directory are run at FC> boot time with a "start" argument (for FreeBSD 4+, in 3- it just ran the executable scripts). FC> The easiest script is like so: FC> #!/bin/sh FC> case "$1" in FC> start) FC> echo -n "apache " FC> /usr/local/sbin/apchectl start FC> ;; FC> stop) FC> /usr/local/sbin/apachectl stop FC> ;; FC> restart) FC> /usr/local/sbin/apachectl restart FC> ;; FC> *) FC> echo "Usage: $0 {start | stop | restart}" FC> ;; FC> esac I like this method best :) I can see that httpd runs as nobody. Can I change this, and is it a good/bad idea? -- Med venlig hilsen/Best regards, Søren Neigaard mailto:neigaard@e-box.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message