[Pkg-nagios-devel] Bug#466261: nsca: Please add LSB formatted dependency info in init.d script

Petter Reinholdtsen pere at hungry.com
Sun Mar 30 09:09:25 UTC 2008

I had a closer look at the package, and this code will not work as
expected with dependency based boot sequencing.  The defaults-call to
update-rc.d will use the LSB header and insert the script at its
expected location, but the call using "stop 16 2 3 4 5 ." will not.

This means that the provided patch is not sufficient for this package.

# do this manually to allow the debconf setting to control it:
# (don't worry, the debconf setting respects the local modifications)
if [ -x "/etc/init.d/nsca" ]; then
        # if anything has changed...
        if [ "$new_runnsca" != "$old_runnsca" ]; then
                update-rc.d -f nsca remove >/dev/null 2>&1
                if [ "$new_runnsca" = "false" ]; then
                        update-rc.d nsca stop 16 2 3 4 5 .
                        update-rc.d nsca defaults >/dev/null

        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d nsca start || exit 0
                /etc/init.d/nsca start || exit 0

More information about the Pkg-nagios-devel mailing list