shutdown now command does not work

Bug #1065851 reported by ill
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
upstart
Fix Released
Low
James Hunt
upstart (Ubuntu)
Invalid
Low
Unassigned

Bug Description

using the command sudo shutdown now will cause the system to try to shutdown, but then it switches to single user mode instead, while selecting shutdown from a gui option will cause the system to actually shutdown.
---
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
DistroRelease: Ubuntu 12.10
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
NonfreeKernelModules: nvidia
Package: upstart 1.5-0ubuntu9
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Tags: quantal
Uname: Linux 3.6.1-030601-generic x86_64
UpgradeStatus: Upgraded to quantal on 2012-10-21 (12 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1065851/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Book 'em Dano (heymrdjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

  apport-collect 1065851

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

affects: ubuntu → upstart (Ubuntu)
Changed in upstart (Ubuntu):
status: New → Incomplete
Revision history for this message
ill (illumilore) wrote : Dependencies.txt

apport information

tags: added: apport-collected quantal
description: updated
Changed in upstart (Ubuntu):
status: Incomplete → Confirmed
Book 'em Dano (heymrdjd)
Changed in upstart (Ubuntu):
status: Confirmed → New
ill (illumilore)
Changed in upstart (Ubuntu):
status: New → Confirmed
Revision history for this message
James Hunt (jamesodhunt) wrote :

This is correct behaviour - "shutdown now" is supposed to switch to single-user mode unless an explicit option has been set to specify an alternative form of shutdown. What you probably meant to type was "shutdown -h now" which will halt the system (and generally power it off too).

The man page for shutdown does need updating to show the default action of "switch to runlevel 1" though.

Changed in upstart (Ubuntu):
importance: Undecided → Low
Revision history for this message
James Hunt (jamesodhunt) wrote :

shutdown man page updated upstream to clarify behaviour.

Changed in upstart:
assignee: nobody → James Hunt (jamesodhunt)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Dimitri Pappas (fragtion) wrote :

'shutdown now' would typically shut the system down until recent updates which also caused reboot now to enter single user mode. why would 'reboot' ever bring the system to single-user mode, even if the user provides incorrect syntax? Incredibly unintuitive, not to mention inconsistent. This is still a bug as far as I'm concerned, as is bug#1174272 - but rather than arguing the point any further, I'm content to much rather grab some popcorn and wait for others to amplify the seriousness of it and hopefuly persuade a clearly stubborn developer

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

revno: 1475
committer: James Hunt <email address hidden>
branch nick: upstart
timestamp: Tue 2013-05-07 09:59:05 +0100
message:
  * util/man/shutdown.8: Specify default action is to bring system
    down to single-user mode (LP: #1065851).

Changed in upstart:
status: Fix Committed → Fix Released
Changed in upstart (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.