rc.d scripts to control multiple instances of the same daemon?

Baptiste Daroussin bapt at FreeBSD.org
Tue Jun 25 20:41:04 UTC 2013

On Tue, Jun 25, 2013 at 03:44:31PM -0400, Garrett Wollman wrote:
> I'm in the process of (re)writing an rc.d script for kadmind
> (security/krb5).  Unlike the main Kerberos daemon, kadmind needs to
> have a separate instance for each realm on the server -- it can't
> support multiple realms in a single process.  What I need to be able
> to do:
> 1) Have different flags and pidfiles for each instance.
> 2) Be able to start, stop, restart, and status each individual
> instance by giving its name on the command line.
> 3) Have all instances start/stop automatically when a specific
> instance isn't specified.
> I've looked around for examples of good practice to emulate, and
> haven't found much.  The closest to what I want looks to be
> vboxheadless, but I'm uncomfortable with the amount of mechanism from
> rc.subr that it needs to reimplement.  Are there any better examples?
> -GAWollman
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"

This is a simple multi instance rc.d script:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130625/230a8d18/attachment.sig>

More information about the freebsd-ports mailing list