[Bug 214284] [feature suggestion] Allow services to run additional instances
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 6 21:04:49 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214284
Bug ID: 214284
Summary: [feature suggestion] Allow services to run additional
instances
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: yuri at rawbw.com
In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207129 I implemented the
instances functionality for security/tor, when additional instances of Tor can
be run under the umbrella of the same service.
I am going to generalize that functionality so that some other servers can use
the additional instances too.
This will be implemented in /etc/rc.subr.
> # /etc/rc.conf will include the lines like this:
> <name>_enable="YES"
> <name>_instances="inst1:<param1>:<param2>{:...} {inst2:<param1>:<param2>{:...} {...additional instances...}}"
> <name>_disable_default_instance="YES"
Then service commands
> # service <cmd> <name> {<instance>}
will execute the command <cmd> on all defined instances, or on one instance
<instance>.
rc scripts will have to include the process_instances call with instance
declaration:
> process_instances "$1" "$2" "<param1>/<param1_type>:<param2>/<param2_type>{:...}" || return $?
> ...
> run_rc_command_with_instances "$1"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list