shutdown bug, not present in previous versions
Bug #1941737 reported by
Pedreter
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| sysvinit (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
Hi,
Sysvinit (2.96-7) includes a shutdown version (/sbin/shutdown) that contains a bug not present in previous versions of shutdown
It affects to QEMU VMs, like Proxmox, for example, that cannot be shutdown from console.
Basically, to shutdown QEMU-Guest-Agent issues the command
/sbin/shutdown -h -P +0
but /sbin/shutdown refuses to work when -h and -P are present at the same time, although its help says explicitly that "-P can only be used with -h flag".
Older versions of shutdown work correctly!! and /sbin/shutdown -h -P +0 shutdown the machine as expected.
Regards,
Pedreter.

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1941737
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/ReportingBu gs.