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

Mert Dirik mertdirik at gmail.com
Wed Jan 10 19:49:17 UTC 2018


On 01/10/18 21:20, Petter Reinholdtsen wrote:
> [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. :)
I'm happy to hear that.
>
>> 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?
Maybe "__init_d_script_path"?
>
>> Is there anything wrong with this approach?
> Nothing I could think of from the top of my head. :)
>
Great :) I'll test it again in stretch or sid and I'll post the result 
here. (previous test was done in jessie)



More information about the Pkg-sysvinit-devel mailing list