Bug#826214: Bug#913247: Please provide a C implementation of /lib/init/init-d-script
Thorsten Glaser
t.glaser at tarent.de
Sat Dec 1 22:31:21 GMT 2018
On Sat, 1 Dec 2018, Michael Biebl wrote:
> I'd also be interested to know why
>
> #!/usr/bin/env /lib/init/init-d-script
> is preferred over
> #!/bin/sh /lib/init/init-d-script
> given that init-d-script is *no* C implementation.
That’s easy: this way, the shebang at the start of
/lib/init/init-d-script can, if needed, select a
shell other than /bin/sh to be the interpreter, e.g.
if shell-specific features need to be used.
This will also make it easier to switch to a binary
implementation later.
bye,
//mirabilos
--
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)
More information about the Pkg-systemd-maintainers
mailing list