From owner-freebsd-questions Wed Sep 15 11:31:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gate.hsag.com (gate.hsag.com [209.180.144.14]) by hub.freebsd.org (Postfix) with SMTP id 005F21535B for ; Wed, 15 Sep 1999 11:31:42 -0700 (PDT) (envelope-from SWorthington@hsag.com) Received: (qmail 12630 invoked from network); 15 Sep 1999 18:19:37 -0000 Received: from unknown (HELO internal.hsag.com) (192.168.83.9) by 192.168.83.5 with SMTP; 15 Sep 1999 18:19:37 -0000 Received: from AZPRO-Message_Server by internal.hsag.com with Novell_GroupWise; Wed, 15 Sep 1999 11:36:41 -0700 Message-Id: X-Mailer: Novell GroupWise 5.5.2 Date: Wed, 15 Sep 1999 11:36:09 -0700 From: "Scott Worthington" To: , Subject: Re: Apache start up Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG While MS-DOS uses the AUTOEXEC.BAT file to load file one boot-up, FreeBSD relies on a different structure. The directory, /usr/local/etc/rc.d, is where you place shell files to load local programs at boot up. Here's a how to: 1. cd /usr/local/etc/rc.d 2. ee 01httpd.sh 3. In the 01httpd.sh type: #!/bin/sh /usr/local/apache/bin/apachectl start echo -n ' httpd' 4. Exit out of ee (esc and save) 5. chmod 755 01httpd.sh What this is accomplising: 1. Changed into the directory that FreeBSD searches at boot-up for shell files to run. 2. Started the Easy Editor to create your shell file 3. Inserted the commands to launch apache at boot 4. Exited and saved the shell program 5. Made the 01httpd.sh executable. Don't forget the .sh at the end! Why 01? Well, you can specify the order that=20 the programs load. If you want MySQL to load next, you would name it 02mysql.sh and put in the currect shell commands to launch MySql (safe_mysqld &). Etc. I hope this helps. Any comments or modifications? >>> "Langa Kentane" 09/14/99 03:49PM >>> Got a simple problem with apache. I don't how to start it up. Should I be using inetd.conf or what.. if so, can you please tell me what line to add = to inetd.conf Cheers Langa Kentane Manager: Network Operations Sunshine Networks Tel +27 82 928 1952 To Unsubscribe: send mail to majordomo@FreeBSD.org=20 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