From owner-freebsd-newbies Sun Sep 30 10: 3:58 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from pineapple.theshop.net (pineapple.theshop.net [208.128.7.7]) by hub.freebsd.org (Postfix) with ESMTP id AF88137B408 for ; Sun, 30 Sep 2001 10:03:53 -0700 (PDT) Received: from bsdprophet.org (cherry46.theshop.net [63.67.33.111]) by pineapple.theshop.net (8.12.0/8.12.0) with ESMTP id f8UH7Idr005147; Sun, 30 Sep 2001 12:07:18 -0500 (CDT) Message-ID: <3BB75097.7E894C09@bsdprophet.org> Date: Sun, 30 Sep 2001 12:04:23 -0500 From: Scott Corey Organization: Open Source Education Foundation X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Walter Betancourt Cc: freebsd-newbies@freebsd.org Subject: Re: automatic start of Apache References: <4.2.2.20010930125829.00b622f0@popd.betan.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Walter Betancourt wrote: > > I have startup stuff in rc.conf.local > > does it matter ? No > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message