util: halt should not power off system unless called with -p/--poweroff
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Low
|
Scott James Remnant | ||
upstart (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: upstart
This concerns upstart 0.6.3-11 in Karmic.
I see that halt(8), by default, powers off the system. (I don't agree with this, but it's been like this for four years, so whatever.) halt(8) has an option -p/--poweroff to request a poweroff (but this option is superfluous, because that's the default). There is no option, however, to have halt(8) do a system halt. The only way to get a proper halt is "shutdown -h -H ...", the need for which negates the utility of the halt/poweroff/
I would like to request this new option to halt(8) (e.g. -h/--halt), and maybe drop the -p/--poweroff option lest it mislead the user as to the command's default behavior.
Changed in upstart: | |
status: | Fix Committed → Fix Released |
Changed in upstart (Ubuntu): | |
status: | Invalid → New |
importance: | Low → Undecided |
Actually I agree with you, halt should not power off the system - that's the entire reason there are two names for this binary. It looks like a simple bug in the code when halt actually calls shutdown, and doesn't pass across the argument to mean that it was really called as halt.