Bug#743555: initscripts: command "halt" unintended changed behaviour

Jesse Smith jsmith at resonatingmedia.com
Fri Mar 8 16:57:43 GMT 2019

On 3/8/19 12:46 PM, Pierre Ynard wrote:
>> 2. The user runs /sbin/halt without the "-p" flag. This runs
>> /sbin/shutdown -h. INIT_HALT is not set. The /etc/init.d/halt script
>> checks /etc/defaults/halt to see whether it should poweroff or simply
>> stop.
> Yes, but Steve says that /sbin/halt without the "-p" flag should
> definitely call /sbin/shutdown -h -H and always halt without poweroff
> regardless of /etc/default/halt, which is in contradiction with what the
> new version does as you just explained.

When /sbin/halt is called without the -p flag, it should call
/sbin/shutdown -h. It should not (and does not) call /sbin/shutdown -h
-H. This is described in the halt(8) manual page. It should _not_ halt
the system regardless of the what is in /etc/defaults/halt.

- Jesse

More information about the Debian-init-diversity mailing list