[Pkg-sysvinit-devel] Bug#519520: No concurrency for .sh scripts

Cortese, Matteo matteo.cortese at delphi.com
Fri Mar 13 10:04:00 UTC 2009


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.
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).

****************************************************************************************

Note:  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. 

****************************************************************************************





More information about the Pkg-sysvinit-devel mailing list