Actually, we have to check $1 as well - $UPSTART_EVENT is not reset if
the stop command is by exit, so it still contains "runlevel" because
that's what started the job.

        if [ "${UPSTART_EVENT}" = "runlevel" -a "$1" != "S" ]
        then
            exit 100
        fi

Seems right

-- 
entering 'reboot' at the rescue console brings up gdm
https://bugs.launchpad.net/bugs/66002
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to