[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#513955: debian-policy: do not require /etc/init.d/*.sh scripts to be sourced



Hello Russ,

Russ Allbery hat am Mon 02. Feb, 20:36 (-0800) geschrieben:
> Kel Modderman <kel@otaku42.de> writes:
> 
> > It is the opinion of myself and Petter Reinholdtsen, maintainers of the
> > sysvinit package, that the last sentence of §9.3.1 of policy is no
> > longer relevant and should be removed:
> >
> > """Also, if the script name ends in .sh, the script will be sourced in
> > runlevel S rather than being run in a forked subprocess, but will be
> > explicitly run by sh in all other runlevels."""
> >
> > The reasons for which it should be removed are:
> >
> > * /etc/init.d/rc has not supported this for an extremely long time, probably
> >   never, because the system would be unbootable due to .sh scripts calling
> >   'exit' [0, 1].
> 
> Given this, I definitely agree.  There's no point in having a statement
> like this in Policy when our core packages don't implement it and no one
> has apparently cared.

I agree with you and second the proposal. As much as I like the idea to
run scripts in the context of the rc process, I see no much value for
packages and I as the administrator of a system can modify the rc script.
I follow you that such a requirement generates more problems than it
solves.

Bye, Jörg.
-- 
Prof. in der Mathematikvorlesung zu einem vergessenen φ in der
Gleichung: „Klein‐φ macht auch Mist.“

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


Reply to: