diff options
author | Ludwig Nussel <ludwig.nussel@suse.de> | 2021-12-08 12:48:35 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-12-09 15:07:40 +0100 |
commit | a9c3cc8db02dc36d41b17d0bbf1e02500046e4ce (patch) | |
tree | 3ce0350f6942404129edd6fc82fcd99b93fc6b60 /src/systemctl/systemctl.c | |
parent | b55093ce8884ee4fc72f28c6fd5e39897e921e21 (diff) | |
download | systemd-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.c | 4 |
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; |