systemctl: add shutdown --show option

Shows the scheduled shutdown action and time if there's one.
This commit is contained in:
Ludwig Nussel
2021-12-09 15:07:40 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent b55093ce88
commit a9c3cc8db0
6 changed files with 56 additions and 1 deletions
+4
View File
@@ -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;