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@FreeBSD.org Reporter: y...@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. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"