tech-userlevel archive

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

Re: Generically running rc scripts



Hi,

> >> 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.
attached is the service script that fits for NetBSD, with no further
modifications were made to the copyright statement or rcs.

If you don't have any objections, please commit it or tell me what to do with
it (include it manually in the program?).


Regards, Julian

Attachment: service
Description: Binary data

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index