From owner-freebsd-newbies Sun Sep 30 9:59:57 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from gate.tellurian.net (gate.tellurian.net [216.182.1.1]) by hub.freebsd.org (Postfix) with ESMTP id 5557137B40B for ; Sun, 30 Sep 2001 09:59:52 -0700 (PDT) Received: from walt99 (unverified [216.182.56.86]) by gate.tellurian.net (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Sun, 30 Sep 2001 12:59:51 -0400 Message-Id: <4.2.2.20010930125829.00b622f0@popd.betan.net> X-Sender: walterbetanc@popd.betan.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Sun, 30 Sep 2001 12:59:06 -0400 To: freebsd-newbies@freebsd.org From: Walter Betancourt Subject: Re: automatic start of Apache In-Reply-To: <200109301651.JAA23450@ocis.ocis.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 I have startup stuff in rc.conf.local does it matter ? Walt At 09:51 AM 9/30/01 -0700, you wrote: >First, this is not the right list to be asking technical questions >on. This list is for new users to >discuss their experiences running FreeBSD (the good, the bad, the ugly if >needed). If you are >unsure how to phrase a technical question for the freebsd-questions list, >then post the info you >have and ask for suggestions on making it better here. :) Just an FYI >for next time. > > > Where should I put the stuff I want to start at system startup? > >Two places. If you want it to just start at boot, add a couple lines to >/etc/rc.local: > echo -n "apache " > /usr/local/sbin/apachectl start > >If you want to be able to control its start/stop/restart a la SysV/Linux, >then you can create a >simple script and put it in /usr/local/etc/rc.d/ All the executable >scripts in this directory are run at >boot time with a "start" argument (for FreeBSD 4+, in 3- it just ran the >executable scripts). > >The easiest script is like so: >#!/bin/sh >case "$1" in > start) > echo -n "apache " > /usr/local/sbin/apchectl start > ;; > stop) > /usr/local/sbin/apachectl stop > ;; > restart) > /usr/local/sbin/apachectl restart > ;; > *) > echo "Usage: $0 {start | stop | restart}" > ;; >esac > >HTH, >Cheers, >Freddie >fcash@bigfoot.com > >Linux is for people who hate Windows. >FreeBSD is for people that like UNIX. > -- unknown > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-newbies" in the body of the message Walt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message