[Pkg-sysvinit-devel] Bug#339955: Bug#513955: debian-policy: do not require /etc/init.d/*.sh scripts to be sourced

Russ Allbery rra at debian.org
Sun Feb 22 21:54:29 UTC 2009


Kel Modderman <kel at otaku42.de> writes:
> On Saturday 14 February 2009 14:01:40 Russ Allbery wrote:

>> I went to write the patch for this, but I paused when I saw that the
>> other part of this sentence (explicitly running such scripts with sh at
>> other run levels) is implemented.  The current /etc/init.d/rc runs the
>> script directly if it doesn't end in .sh but runs it with sh if it
>> does.

> That's not an interface that has much merit either, it would be nice if
> we didn't have to support it and we had the freedom to execute the
> scripts directly.

Agreed.  I just wanted to be sure that this was the intention.

> I think all scripts in /etc/init.d/ must have a shebang line and be
> executable, and be able to be executed directly. Executing .sh scripts
> explicitly by sh is not something I see much value in supporting, Petter
> expressed similar sentiment when I poked him on IRC.

Good enough for me.

This change will be in the next release of Policy.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the Pkg-sysvinit-devel mailing list