[Bug 1003020] Re: Halt won't poweroff

moi 1003020 at bugs.launchpad.net
Wed May 23 07:51:22 UTC 2012


** Package changed: ubuntu => upstart (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1003020

Title:
  Halt won't poweroff

Status in “upstart” package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1003020/+subscriptions




More information about the foundations-bugs mailing list