bfec31666aa9e61cc869fa6e93a031b53fe47d44
Author Petr Šabata <contyk@redhat.com> Committer GitHub <noreply@github.com> Date 2020-02-10 18:16 UTC
Message systemd: refactor and add latest commands (#6250)
* Order systemctl commands alphabetically
Simplifying the plugin maintenance.
Signed-off-by: Petr Šabata <contyk@redhat.com>
* Include the latest systemctl commands
Based on systemd-233. I'm still keeping the old, now unsupported
commands for backwards compatibility as well.
Signed-off-by: Petr Šabata <contyk@redhat.com>
* Add daemon-reload (#3701)
Closes #3701
Co-authored-by: Javier Tia <javier.tia@gmail.com>
Diff 1 diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
2 index 7cd27d4500d80001543c4c3692d59eeb1fbfa978..201ffd9989eab64b6940fc23b4912c147493bd05 100644
3 --- a/plugins/systemd/systemd.plugin.zsh
4 +++ b/plugins/systemd/systemd.plugin.zsh
5 @@ -1,12 +1,65 @@
6 user_commands=(
7 - list-units is-active status show help list-unit-files
8 - is-enabled list-jobs show-environment cat list-timers)
9 + cat
10 + get-default
11 + help
12 + is-active
13 + is-enabled
14 + is-failed
15 + is-system-running
16 + list-dependencies
17 + list-jobs
18 + list-sockets
19 + list-timers
20 + list-unit-files
21 + list-units
22 + show
23 + show-environment
24 + status)
25
26 sudo_commands=(
27 - start stop reload restart try-restart isolate kill
28 - reset-failed enable disable reenable preset mask unmask
29 - link load cancel set-environment unset-environment
30 - edit)
31 + add-requires
32 + add-wants
33 + cancel
34 + daemon-reexec
35 + daemon-reload
36 + default
37 + disable
38 + edit
39 + emergency
40 + enable
41 + halt
42 + hibernate
43 + hybrid-sleep
44 + import-environment
45 + isolate
46 + kexec
47 + kill
48 + link
49 + list-machines
50 + load
51 + mask
52 + poweroff
53 + preset
54 + preset-all
55 + reboot
56 + reenable
57 + reload
58 + reload-or-restart
59 + reset-failed
60 + rescue
61 + restart
62 + revert
63 + set-default
64 + set-environment
65 + set-property
66 + start
67 + stop
68 + suspend
69 + switch-root
70 + try-reload-or-restart
71 + try-restart
72 + unmask
73 + unset-environment)
74
75 for c in $user_commands; do; alias sc-$c="systemctl $c"; done
76 for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done