From owner-freebsd-newbies Sun Sep 30 9:51:35 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from ocis.ocis.net (ocis.ocis.net [209.52.173.1]) by hub.freebsd.org (Postfix) with ESMTP id C36F937B40E for ; Sun, 30 Sep 2001 09:51:31 -0700 (PDT) Received: (from root@localhost) by ocis.ocis.net (8.9.3/8.9.3) id JAA23450; Sun, 30 Sep 2001 09:51:03 -0700 Date: Sun, 30 Sep 2001 09:51:03 -0700 Message-Id: <200109301651.JAA23450@ocis.ocis.net> From: "Freddie Cash" To: "Søren Neigaard" Cc: newbies@freebsd.org Reply-To: fcash@bigfoot.vom Subject: Re: automatic start of Apache X-Mailer: Open WebMail 1.13 X-OriginatingIP: 209.52.175.148 (fcash) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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 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