summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2022-11-23 19:39:15 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-11-27 11:18:32 +0100
commit31853609809c67a2f8a8beb0436378e9bfb9a54d (patch)
treedd6a15e2683f8e7f757d37708d5593104ee83a7b /src/systemctl/systemctl.c
parentfdisk: introduce common fdisk_new_context_fd() helper (diff)
downloadsystemd-31853609809c67a2f8a8beb0436378e9bfb9a54d.tar.xz
systemd-31853609809c67a2f8a8beb0436378e9bfb9a54d.zip
systemctl: deprecate passing positional argument to reboot completely
(follow-up of #15958) In #15958 we deprecated passing positional argument to reboot by generate a warning. It's been two years now and I believe it can be dropped completely, as per requested in #15773.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 3f28bcc3dc..4f2637f0f1 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1087,7 +1087,7 @@ static int systemctl_main(int argc, char *argv[]) {
{ "import-environment", VERB_ANY, VERB_ANY, VERB_ONLINE_ONLY, verb_import_environment },
{ "halt", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },
{ "poweroff", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },
- { "reboot", VERB_ANY, 2, VERB_ONLINE_ONLY, verb_start_system_special },
+ { "reboot", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },
{ "kexec", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },
{ "suspend", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },
{ "hibernate", VERB_ANY, 1, VERB_ONLINE_ONLY, verb_start_system_special },