Hi Stuart,

Am 20.08.2015 um 23:48 schrieb Stuart Longland:

> I've used the OpenVPN init script as a template for creating my init
> scripts, which allows me to not only start and stop all drivers, but
> also start or stop an individual driver.  e.g.
> 
>       /etc/init.d/driver-service start foo
> 
> ... much the same way you can 

start and stop individual OpenVPN
> tunnels this way.

[..]

> Is there some way for the init script to tell systemd what subservices
> are valid or do I have to maintain specialised scripts for systemd?

systemd doesn't support arbitratrily defined subcommands/actions.

What you can do is to create a service unit per driver/service and start
them individually, much like openvpn in Jessie does.

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to