:: Re: [devuan-dev] System Services - …
Góra strony
Delete this message
Reply to this message
Autor: wirelessduck
Data:  
Dla: devuan developers internal list
Temat: Re: [devuan-dev] System Services - request for comments...

> Query:
> Is it reasonable to assume that the 'service' command that transparently handles both SystemD and SysVinit found in many Distros could be expanded to work with other Init systems ?
>
> Reasoning:
> The application could call the Distro provided 'service' command which would then perform the correct action for that specific Init system whether it be SystemD, OpenRC, Runit etc.


http://smarden.org/runit/sv.8.html

Runit has a compatibility interface for init scripts which then allows you to use the standard “service” command provided with init-system-helpers package. Just need to add the appropriate symlink from /etc/init.d/servicename to /usr/bin/sv