]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: let's emphasize a bit that halt/poweroff/reboot/shutdown are compat commands
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Jun 2023 08:40:31 +0000 (10:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Jun 2023 12:06:37 +0000 (14:06 +0200)
commit6e89663d23230bef4ddcbb0a80bfdf6daa714887
tree5d5858cd5a045d33fea1034d75e14476262fe4b4
parentc4ffb5305442e346e637f0d95dd2323d38205ff5
systemctl: let's emphasize a bit that halt/poweroff/reboot/shutdown are compat commands

Let's try to make clear that these calls really should not be extended
anymore, but remain as the compat glue they are but not more.

Anything new should really be added to systemctl poweroff/halt/reboot,
which is actually defined and owned by us.

This is added in light of a9c3cc8db02dc36d41b17d0bbf1e02500046e4ce which
really shouldn't have been added I am sure.

This adds two things: a note to the --help text that people use the
relevant systemctl commands instead (as they are a lot more powerful,
for example give you inhibitor and boot loader control, kexec, and so
on). And a note to developers that they stop adding new stuff to the
compat interfaces.
src/systemctl/systemctl-compat-halt.c
src/systemctl/systemctl-compat-shutdown.c