Date: Wed, 15 Sep 1999 11:36:09 -0700 From: "Scott Worthington" <SWorthington@hsag.com> To: <evablunted@earthling.net>, <Freebsd-questions@freebsd.org> Subject: Re: Apache start up Message-ID: <s7df84c9.072@internal.hsag.com>
next in thread | raw e-mail | index | archive | help
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" <evablunted@earthling.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s7df84c9.072>