Good example for startup script with multiple "profiles"?
Chad J. Milios
milios at ccsys.com
Wed Feb 10 23:36:26 UTC 2016
On 2016-02-10 17:43, Garrett Wollman wrote:
> It's sometimes useful to have a single rc script start multiple copies
> of the same service, using different options. (For example, and my
> use case here, running a monitoring daemon with different parameters
> on "inside" and "outside" network interfaces.) Is there a good
> example I can crib from for how best to code this up while taking
> maximal advantage of the rc.subr framework?
>
> -GAWollman
> _______________________________________________
> freebsd-rc at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe at freebsd.org"
Not saying this is the absolute best approach, but take a look at
security/openvpn. that is after what i modeled my enhancement to the
dns/knot2 startup script in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203931 . i think the
diff in that PR would make a good example of what youre looking to
accomplish, clearly illustrating the actual modification. knot2 is
rather simple software so nothing's in the way to obscure the
illustrative value youre looking for, yet it also has the extra control
function in there referencing the knotc control utility executable
More information about the freebsd-rc
mailing list