[Pkg-sysvinit-devel] Bug#826214: Bug #826214: Bug #826215: init-d-script and systemd: solution

Michael Biebl biebl at debian.org
Tue Mar 7 02:10:59 UTC 2017


I wonder if it wouldn't be a good idea, to turn
/lib/init/init-d-script into a real binary (similar to openrc).

This would way we could drop this rather ugly construct:
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and
sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi

and replace it with something like

#!/lib/init/init-d-script

This small helper binary would execute the init script (using a helper
shell library) and could pass $@ along properly.
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20170307/b77cbc95/attachment.sig>


More information about the Pkg-sysvinit-devel mailing list