keramida at ceid.upatras.gr
Mon Dec 15 16:55:37 PST 2008
On Mon, 15 Dec 2008 23:56:43 +0200, KES <kes-kes at yandex.ru> wrote:
> It there feature (option in rc.subr) to run multiple services at once?
None that I know of.
> For example I have 'service'
> to run service with specific flags I want to do:
> service_instances="instance1 instance2"
> service_instance1_flags="-flag 1 rl0"
> service_instance2_flags="-flag 2 rl2"
> so rc.subr will run:
> service -flag 1 rl0
> service -flag 2 rl2
It may be possible to simulate what /etc/rc.d/moused does. In recent
versions of the script, the following commands are supported:
/etc/rc.d/moused start ums0
The first invocation uses the 'default' options from `rc.conf':
The second invocation uses another set of options from `rc.conf':
The support for these non-default options is implemented using a small
local hack in `src/etc/rc.d/moused':
It would be great if you found some way to integrate this with the rest
of rc.d. This way more scripts can support multiple instances of the
underlying service :)
More information about the freebsd-questions