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:20:01 GMT 2018


Michael Biebl:
> fwiw, this is why I suggested to provide a C implementation of 
> init-d-script which can be used as an interpreter

That's how it was addressed in 2007.

* 
https://github.com/OpenRC/openrc/commit/5af58b45146ab5253ca964738f4e45287bf963d4

* 
http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/2018-November/000340.html

The OpenRC people have already learned many of the lessons through 
experience here, long since.  There are the difficulties in handling rc 
scripts that people have symbolically linked to a common worker script, 
for example.  They also went through the exit code of the interpreter 
thing in a minor way with exit 0 when starting a service in 2008 and 
again in more detail in 2011.

* https://bugs.gentoo.org/show_bug.cgi?id=351160




More information about the Debian-init-diversity mailing list