[Bug 1003020] Re: Halt won't poweroff

Anders Kaseorg andersk at mit.edu
Tue Nov 6 05:07:48 UTC 2012


*** This bug is a duplicate of bug 991997 ***
    https://bugs.launchpad.net/bugs/991997

>Then it shutdowns only if INIT_HALT and HALT are different...

You’re misreading that.  It says:
  if [ "$INIT_HALT" = "HALT" ]
not:
  if [ "$INIT_HALT" = "$HALT" ]

The symptom, however, is bug 991997.

** This bug has been marked a duplicate of bug 991997
   Default behavior of "halt" changed to halt only instead of powering off

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