[Pkg-sysvinit-devel] Two line init.d scripts? Sure, that will work!

Petter Reinholdtsen pere at hungry.com
Wed Feb 5 23:36:25 UTC 2014


[Russ Allbery]
> It's probably worth mentioning that this is basically the path down
> which OpenRC went, except that OpenRC has taken the concept somewhat
> further to allow the dependencies to be specified in code instead of
> comments (using special shell functions).  You may want to take a
> look at their syntax, since it's extremely close to what you're
> doing but possibly a bit more fleshed out.

Yeah, I discovered that OpenRC had a similar approach, but without
staying compatible with our current set of scripts in /etc/init.d/.
The two goals I had in mind were to allow us to migrate individual
scripts to this system without having to replace sysv-rc, file-rc, or
any of the other implementations currently running init.d scripts (ie
stay compatible with the current LSB based init.d script format) and
reduce the code duplication between init.d scripts.  OpenRC can't
provide both these, as far as I can see.  It solve a lot of other
problems for sure. :)

This approach also make it easier to identify the "simple" init.d
scripts, and possibly also make it easier to integrate them with for
example systemd and upstart by providing a replacement for the
init-d-script script or by extending init-d-script.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list