[Bug 880240] Re: system doesn't turn off if "sudo halt" is given
Steve Langasek
steve.langasek at canonical.com
Fri Jun 8 23:26:28 UTC 2012
Ok, I've worked my way all the way through this bug now, and I have to
conclude this is behavior we can't/shouldn't change.
- The 'shutdown' command has three options: '-h' (halt or power off), '-H' (halt), and '-P' (power off).
- The 'halt' command maps to -H, by design.
- The 'poweroff' command maps to -P, by design.
- The /etc/default/halt configuration *only* affects the behavior when neither -H nor -P has been specified.
- There is no way to make 'halt' by itself map to 'poweroff', without making it impossible to do a real 'halt'.
- These are all standard options that shouldn't be changed.
So I'm closing this bug report as 'wontfix'. The current behavior is
inconsistent with previous upstart behavior, but that behavior was
buggy. The current behavior is correct, and I'm afraid people will just
have to learn that 'halt' doesn't mean what you were led to believe it
means.
If you want the system to poweroff, you need to run either 'shutdown -h
now', 'halt -p', or 'poweroff'. All three commands work. 'halt -p' is
the shortest and probably the most compatible with existing muscle
memory.
** Changed in: upstart (Ubuntu)
Status: Triaged => Won't Fix
--
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/880240
Title:
system doesn't turn off if "sudo halt" is given
Status in “upstart” package in Ubuntu:
Won't Fix
Bug description:
Since I upgraded from 11.04 to 11.10 the system doesn't turn off at
the end of halt procedure if it's called via commandline (local or
remote shell) . At some point of halt procedure the system freezes and
all I can do is turning off pc via physical power button and halting
it using GUI or via "sudo shutdown -h now" , these two methods work
flawlessly.
I have this problem on both x86_64 and x86. Anyway if I shut down the
pc using ligthdm or unity the system is turned off properly.
Description: Ubuntu 11.10
Release: 11.10
Linux travelmate 3.0.0-13-generic #21-Ubuntu SMP Mon Oct 17 20:18:09 UTC 2011 i686 i686 i386 GNU/Linux
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions
More information about the foundations-bugs
mailing list