Subject: Re: pkgsrc rc.d scripts
To: Johnny C. Lam <lamj@stat.cmu.edu>
From: Frederick Bruckman <fb@enteract.com>
List: tech-pkg
Date: 05/14/2001 15:13:13
On Mon, 14 May 2001, Johnny C. Lam wrote:

> 	What's our preference for rc.d-style scripts?  In
> databases/postgresql-server/files/pgsql.sh, the script is a
> self-contained script that obeys /etc/rc.conf directives and accepts
> all the usual rc.d command (start, stop, etc.)  In
> net/samba/files/smbd.sh, the script will start smbd if /etc/rc.d
> doesn't exist, otherwise, it looks just like the other scripts in
> /etc/rc.d.
[snip]
> 	My question is basically whether I should be changing the
> pgsql.sh script (and other scripts in pkgsrc) to look like the smbd.sh
> script, or the other way around.

For my answer, take a look at www/wwwoffle. I added a new rc.d style
script, left the old one alone, and added a MESSAGE file explaining
which one to use, and what to do with them.


Frederick