Date: Sun, 06 Nov 2016 21:04:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214284] [feature suggestion] Allow services to run additional instances Message-ID: <bug-214284-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214284 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: yuri@rawbw.com In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207129 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=3D"YES" > <name>_instances=3D"inst1:<param1>:<param2>{:...} {inst2:<param1>:<param2= >{:...} {...additional instances...}}" > <name>_disable_default_instance=3D"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" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214284-8>