From owner-freebsd-questions Wed Nov 18 11:23:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA23165 for freebsd-questions-outgoing; Wed, 18 Nov 1998 11:23:06 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from shemp.palomine.net (shemp.palomine.net [205.198.88.200]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA23120 for ; Wed, 18 Nov 1998 11:22:20 -0800 (PST) (envelope-from cjohnson@palomine.net) Received: (qmail 19397 invoked by uid 1000); 18 Nov 1998 19:21:51 -0000 Message-ID: <19981118142151.A19316@palomine.net> Date: Wed, 18 Nov 1998 14:21:51 -0500 From: Chris Johnson To: Aaron Clow , freebsd-questions@FreeBSD.ORG Subject: Re: Apache autostart upon reboot References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Aaron Clow on Wed, Nov 18, 1998 at 01:22:36PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Nov 18, 1998 at 01:22:36PM -0500, Aaron Clow wrote: > After an uptime of 52 days on my new FreeBSD/Apache server, my office > power went out and the machine rebooted. It's not mission-critical (just a > 486/25 sitting headless under my desk, running a personal website), so I > don't have a UPS on it. I would, however, like Apache to be restarted if > the machine reboots itself. Is there an initscript in FreeBSD that takes > care of this? If so, anyone know where it is and what I need to change to > activate the auto-start of apachectl? If you installed Apache from the port, there should be a shell script in /usr/local/etc/rc.d called apache.sh. The presence of this file should cause apache to start at bootup. If it's not there, put it there, with the following contents: #!/bin/sh [ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start \ > /dev/null && echo -n ' apache' Make it executable, and you should be all set. Chris > > Thanks! > > Aaron > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message