[Pkg-sysvinit-devel] Bug#826214: SysV init scripts using init-d-script are not properly redirected to systemctl

Petter Reinholdtsen pere at hungry.com
Wed Jan 10 18:20:09 UTC 2018


[Mert Dirik]
> Please forgive my naivety, but simply moving the argument shift part before
> sourcing /lib/lsb/init-functions seems to successfully redirect to
> systemctl.

Interesting.  This seem like a very good idea. :)

> The only variable leaking to /lib/lsb/init-functions is "script", which can be
> easily renamed and namespaced in case of a possible problem.

Perhaps good to give it some init-d-script related prefix, to reduce the
chance of a future collision?

> Is there anything wrong with this approach?

Nothing I could think of from the top of my head. :)

-- 
Vennlig hilsen
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list