Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2005 15:29:42 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        Jarrod Martin <jmartin37@speakeasy.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rcNG script problems
Message-ID:  <42B03B56.6030409@dial.pipex.com>
In-Reply-To: <42AF564C.4040907@speakeasy.net>
References:  <42AF0EDD.4090100@speakeasy.net>	<200506141342.07886.kirk@strauser.com>	<42AF328D.8090502@speakeasy.net>	<BA359FEA-3C7C-4243-8490-FB3CDA48AC2E@shire.net> <42AF564C.4040907@speakeasy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B03B56.6030409>