Bug#822753: /lib/init/init-d-script: exit 0 at end of script prevents all other exit codes

Jonathan de Boyne Pollard J.deBoynePollard-newsgroups at NTLWorld.COM
Sat Nov 24 14:54:42 GMT 2018


Dmitry Bogatov:

> I believe I already wrote in init-d-script(5) correct invocation: 
> #!/usr/bin/env /lib/init/init-d-script
>
That's not what was in the skeleton that you just got rid of; which had 
more attention paid to it than the example in the manual page had, I 
suspect.

The next portability bump on this road, discussed many times over the 
years, is to hit platforms where env is not in /usr/bin.  This is not 
the case with Debian operating systems, though, fortunately.  And I 
doubt that you'll have many dealings with FreeBSD kernels from before 
2005, where the #! mechanism was more like MacOS.  (-:

* https://unix.stackexchange.com/questions/29608/

* https://unix.stackexchange.com/questions/111802/

* https://unix.stackexchange.com/questions/361794/




More information about the Debian-init-diversity mailing list