[Bug 1003020] [NEW] Halt won't poweroff
Launchpad Bug Tracker
1003020 at bugs.launchpad.net
Wed May 23 07:51:23 UTC 2012
You have been subscribed to a public bug:
I use ubuntu 12.04
The script /etc/init.d/halt will never power off...
First it reads /etc/default/halt which is set by default in Ubuntu to
HALT=poweroff
Then it sets a variable INIT_HALT
if [ "$INIT_HALT" = "" ]
then
case "$HALT" in
[Pp]*)
INIT_HALT=POWEROFF
;;
[Hh]*)
INIT_HALT=HALT
;;
*)
INIT_HALT=POWEROFF
;;
esac
fi
Then it shutdowns only if INIT_HALT and HALT are different... The only
way is to write HALT="" in /etc/default/halt
see code:
# If INIT_HALT=HALT don't poweroff.
poweroff="-p"
if [ "$INIT_HALT" = "HALT" ]
then
poweroff=""
fi
Thus no shutdown possible through halt...
Cheers
** Affects: upstart (Ubuntu)
Importance: Undecided
Status: New
** Tags: bot-comment
--
Halt won't poweroff
https://bugs.launchpad.net/bugs/1003020
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to upstart in Ubuntu.
More information about the foundations-bugs
mailing list