<html><head></head><body><div class="yahoo-style-wrap" style="font-family:times new roman, new york, times, serif;font-size:16px;"><div dir="ltr" data-setdir="false"><div><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Hi,</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Debian 11, switched to sysvinit according to Debian documentation.</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Sysvinit (2.96-7) includes a shutdown version (/sbin/shutdown) that contains a (what i think it is a) bug not present in previous versions of shutdown</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">It affects to QEMU VMs, like Proxmox, for example, that cannot be shutdown from console.</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Basically, to shutdown QEMU-Guest-Agent issues the command</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">/sbin/shutdown -h -P +0</p><p style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">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".</p><div style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Older versions of shutdown work correctly!! and /sbin/shutdown -h -P +0 shutdown the machine as expected.</div><div style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;" dir="ltr" data-setdir="false">Regards and thanks for your great job with sysvinit...<br></div><p id="ydpd0815e00yui_3_10_3_1_1629976762949_1422" style="margin: 0px 0px 1.2em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px;">Pedreter.</p></div><br></div></div></body></html>