From owner-freebsd-questions@FreeBSD.ORG Wed Jun 15 14:29:45 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D18F16A427 for ; Wed, 15 Jun 2005 14:29:45 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF2E343D4C for ; Wed, 15 Jun 2005 14:29:43 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 15 Jun 2005 15:30:23 +0100 Message-ID: <42B03B56.6030409@dial.pipex.com> Date: Wed, 15 Jun 2005 15:29:42 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: Jarrod Martin References: <42AF0EDD.4090100@speakeasy.net> <200506141342.07886.kirk@strauser.com> <42AF328D.8090502@speakeasy.net> <42AF564C.4040907@speakeasy.net> In-Reply-To: <42AF564C.4040907@speakeasy.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Jun 2005 14:30:23.0373 (UTC) FILETIME=[C3D993D0:01C571B6] Cc: freebsd-questions@freebsd.org Subject: Re: rcNG script problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2005 14:29:45 -0000 Jarrod Martin wrote: > yea i've figured it out. this really should be better documented > though... i'll be sending all the info to the documentation mailing > list. here's the proper way to do it. the filename is > 'httpd_start.sh' with 555 mode. rc scripts, both rcNG and the old > *.sh styles must have the .sh extension to be recognized (source: > bsdforums.org). the script was placed in '/usr/local/etc/rc.d'. Just to say that man rc does cover this, but it takes a bit of reading -- certainly no harm in a handbook entry for it. The easiest way to figure out patterns for what you can do is (as ever) to read the source; in this case all the myriad scripts in /etc/rc.d (and /etc/rc itself), bearing in mind that the ordering stuff at the top won't work. However, I would future-proof my scripts and put it all in -- it's easy enough. The apache2.sh script was also quite informative though given that your example is an http startup script I guess you didn't install apache2 from ports. --Alex