]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl/halt: drop support for calling in SysV init script
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 21 Apr 2025 04:14:30 +0000 (13:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Jul 2025 20:38:13 +0000 (05:38 +0900)
commit5572fb18c063a0b4706b1c491cd90e72797dffbd
tree1f3a5a88adf9562d8e2ef0f0cf47479261f1ffa4
parentc17516a84a9766c5eb24dfda269db83e9ac400c9
systemctl/halt: drop support for calling in SysV init script

Traditionally, halt is called at the end of the init script on
reboot/shutdown. To support such usecase, previously we read the current
runlevel from utmp and set force flag on reboot/shutdown.

This drops the support for such the usecase.
Note, neither supported nor tested, but hopefully still the command can
be used in the end of the sysv init script by specifying -ff.
src/systemctl/systemctl-compat-halt.c