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)
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel