From owner-freebsd-questions Tue May 11 23:53:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from Samizdat.uucom.com (samizdat.uucom.com [198.202.217.54]) by hub.freebsd.org (Postfix) with ESMTP id 2CB8614DD7 for ; Tue, 11 May 1999 23:53:19 -0700 (PDT) (envelope-from cshenton@uucom.com) Received: (from cshenton@localhost) by Samizdat.uucom.com (8.9.3/8.9.3) id CAA01075; Wed, 12 May 1999 02:49:33 -0400 (EDT) To: Freebsd Danny Cc: "gandolf@destiny.erols.com" , "freebsd-questions@freebsd.org" Subject: Re: Equivlent of Services in NT for Freebsd -- Help me References: User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.3 (i386-pc-solaris2.7) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII From: Chris Shenton Date: 12 May 1999 02:49:33 -0400 In-Reply-To: Freebsd Danny's message of "Sat, 08 May 1999 23:07:44 "GMT"" Message-ID: Lines: 25 X-Mailer: Gnus v5.6.45/Emacs 20.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 08 May 1999 23:07:44 "GMT", Freebsd Danny said: Freebsd> Hi everyone, I have just upgraded the latest version of Freebsd> apache But instead of me everytime to start freebsd type Freebsd> /usr/local/apache/bin/apachectl start Freebsd> I want freebsd to start that during the bootup. without me Freebsd> typing it I built apache + php + mod_ssl from the ports collection. (If you're unfamiliar with ports, do check it out -- it rocks). Ports normally do everything you need for the install including installing startup files. For example, it installed the following startup script in /usr/local/etc/rc.d/apache.sh: #!/bin/sh [ -d /usr/local/pgsql/lib ] && /sbin/ldconfig -m /usr/local/pgsql/lib [ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl startssl > /dev/null && echo -n ' apache' If you follow the /etc/rc* files, they look in this rc.d dir for any file ending in .sh and run it, so it's a great place to start locally-installed daemons. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message