From owner-freebsd-questions Wed Nov 18 11:29:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24098 for freebsd-questions-outgoing; Wed, 18 Nov 1998 11:29:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iglou.com (iglou3.iglou.com [192.107.41.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24079 for ; Wed, 18 Nov 1998 11:29:05 -0800 (PST) (envelope-from patrick@cre8tivegroup.com) Received: from [204.255.227.63] (helo=gateway.cre8tivegroup.com) by iglou.com with esmtp (8.9.1/8.9.1) id 0zgDHA-0003a1-00; Wed, 18 Nov 1998 14:28:29 -0500 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 18 Nov 1998 14:28:19 -0500 (EST) From: Patrick Gardella To: Jeroen Ruigrok/Asmodai Subject: RE: Apache autostart upon reboot Cc: freebsd-questions@FreeBSD.ORG, Aaron Clow Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18-Nov-98 Jeroen Ruigrok/Asmodai wrote: > On 18-Nov-98 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? > > Add Apache to the inetd list and enable inetd? Apache doesn't recommend this, IIRC. > Or put it in /etc/rc.local if memory serves... Put a script in /usr/local/etc/rc.d #!/bin/sh [ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd' I don't recall if Apache put that there or if I did. I've also used a script that calls "/usr/local/sbin/apachectl start" instead of calling httpd directly. Patrick --- Patrick S. Gardella Director of Web Development The Creative Group 1-800-804-0783 ext 29 606-858-8029 (fax) http://www.cre8tivegroup.com PGP Key ID 0xEE2D47A9 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message