tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Generically running rc scripts



On Mon, Nov 14, 2011 at 2:23 PM, Jeremy C. Reed <reed%reedmedia.net@localhost> 
wrote:
> On Mon, 14 Nov 2011, Julian Fagir wrote:
>
>> I'm just editing a small program that makes use of FreeBSD's service(8):
>> http://www.freebsd.org/cgi/man.cgi?query=service&apropos=0&sektion=8&manpath=FreeBSD+8.2-RELEASE&arch=default&format=html
>>
>> I wonder: Is there such a generic way in NetBSD for restarting services, too?
>> Or should I just take scripts from /etc/rc.d (as, in opposition to FreeBSD,
>> NetBSD does not have a second rc.d directory)?
>
> There may be additional rc.d directories.
>
> See "man rc.conf" for "rc_directories". (I am not sure why not used for
> shutdown though.)
>
> There was discussion on adding an service type script (one idea was
> called "rcadmin"), but I don't think it ever happened. See the long
> "admin script for ipfilter" thread at
> http://mail-index.netbsd.org/tech-userlevel/2006/12/oindex.html
> and
> http://mail-index.netbsd.org/tech-userlevel/2007/01/oindex.html
>

The FreeBSD service shell script looks like it would be mostly
portable except for the jails and $local_startup variable.


Home | Main Index | Thread Index | Old Index