summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2021-12-08 12:48:35 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-09 15:07:40 +0100
commita9c3cc8db02dc36d41b17d0bbf1e02500046e4ce (patch)
tree3ce0350f6942404129edd6fc82fcd99b93fc6b60 /src/systemctl/systemctl.c
parentb55093ce8884ee4fc72f28c6fd5e39897e921e21 (diff)
downloadsystemd-a9c3cc8db02dc36d41b17d0bbf1e02500046e4ce.tar.gz
systemctl: add shutdown --show option
Shows the scheduled shutdown action and time if there's one.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 6f76a63165..9031e685ea 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1169,6 +1169,10 @@ static int run(int argc, char *argv[]) {
r = logind_cancel_shutdown();
break;
+ case ACTION_SHOW_SHUTDOWN:
+ r = logind_show_shutdown();
+ break;
+
case ACTION_RUNLEVEL:
r = runlevel_main();
break;