systemctl: add shutdown --show option
Shows the scheduled shutdown action and time if there's one.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b55093ce88
commit
a9c3cc8db0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user