systemctl: add option --when for scheduled shutdown
authorMike Yuan <me@yhndnzj.com>
Sun, 5 Mar 2023 15:27:44 +0000 (23:27 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 14 Mar 2023 11:21:11 +0000 (19:21 +0800)
commit1433e1f998465b7acf472c73d58c14e7e2eb3f13
tree89ffc9ccc34b5a6b8f56069106e78b4e1bd9b5d6
parent92b00e867844948bdf559758739343c4308570c0
systemctl: add option --when for scheduled shutdown

Pass an empty string or "cancel" will cancel the action.
Pass "show" will show the scheduled actions.

Replaces #17258
man/systemctl.xml
src/systemctl/systemctl-logind.c
src/systemctl/systemctl-start-special.c
src/systemctl/systemctl.c