From owner-freebsd-questions Fri Dec 14 7:56:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id ED2D837B417 for ; Fri, 14 Dec 2001 07:56:23 -0800 (PST) Received: from contactdish ([10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fBEFuIR03837; Fri, 14 Dec 2001 16:56:18 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <01ed01c184b7$df04f450$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "Etherflow" , References: <004601c184b5$edcd8260$040010ac@portetherflow> Subject: Re: Apache @ startup Date: Fri, 14 Dec 2001 16:56:19 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I did this by adding the following code to /etc/rc.local: case ${httpd_enable} in [Yy][Ee][Ss]) echo -n ' httpd'; ${httpd_program:-/usr/local/apache/bin/apachectl} start ${httpd_flags} ;; esac This then allows you to add the following lines to your /etc/rc.conf file: httpd_enable="YES" httpd_flags="" There may be a more elegant way to do it, but this worked for me. With the above changes Apache will start automatically at boot. ----- Original Message ----- From: "Etherflow" To: Sent: Friday, December 14, 2001 16:42 Subject: Apache @ startup > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello people, > > I want to know how I can load apache during the startup of my server. > I know that some startup scripts are located @ /usr/local/etc/rc.d, > but I don't know how to do this with apache. > > I hope someone can tell me the answer. :-) > > Greets, > > Sander > > -----BEGIN PGP SIGNATURE----- > Version: PGP 7.1 > > iQA/AwUBPBod3xpaXoDdonXKEQKTngCgxmDwsWEPaNpVfS7DGQJTQonNIXUAoKKx > 6ON8isO8Nd7phOrxekWECGuT > =ApDt > -----END PGP SIGNATURE----- > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message