[Pkg-sysvinit-devel] Bug#519520: Bug#519520: No concurrency for .sh scripts
Kel Modderman
kel at otaku42.de
Fri Mar 13 17:14:21 UTC 2009
On Friday 13 March 2009 20:04:00 Cortese, Matteo wrote:
>
> Package: sysv-rc
> Version: 2.86.ds1-61
>
> Init scripts with trailing .sh are treated differently than other
> scripts, which is explained in detail in bug #339955.
Policy no longer requires this special treatment as of 3.8.1 [0]. See #513955.
> The current solution gives the choice to the user of setting the "sh"
> variable to either:
> "." if he wants .sh scripts to be sourced,
> "sh" if he wants .sh scripts to be treated like the others.
>
> In the latter case, however, .sh scripts are NOT treated like the others
> when $CONCURRENCY=shell. A .sh script is executed this way:
>
> $debug sh "$script" $action
>
> while a non-.sh script is executed this other way:
>
> $debug "$script" $action &
> backgrounded=1
>
> As a result, .sh scripts will never be run in parallel, even in
> runlevels other than S (for which the Policy issue does not apply).
Because policy has been modified to not special mention init scripts ending
with .sh, we are now in a position to modify /etc/init.d/rc to treat all
scripts equally.
Thanks, Kel.
[0] http://lists.debian.org/debian-devel-announce/2009/03/msg00008.html
More information about the Pkg-sysvinit-devel
mailing list