diff options
author | B. Stack <bgstack15@gmail.com> | 2022-07-12 11:25:15 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-07-12 11:25:15 -0400 |
commit | abc6202a58637613b08ff2a3094d21686f0b1a85 (patch) | |
tree | 5f6c0af08eb8afb99053e1d05349ea869bbd0c10 /systemctl | |
parent | add symlink control logic (diff) | |
download | systemctl-service-shim-abc6202a58637613b08ff2a3094d21686f0b1a85.tar.gz systemctl-service-shim-abc6202a58637613b08ff2a3094d21686f0b1a85.tar.bz2 systemctl-service-shim-abc6202a58637613b08ff2a3094d21686f0b1a85.zip |
v0.0.3 closes #688upstream/0.0.3
Diffstat (limited to 'systemctl')
-rwxr-xr-x | systemctl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -13,6 +13,7 @@ # 2020-05-14 place framework.sh contents inline so as not to depend on it. # 2021-01-10 adapted for inclusion in devuan-sanity # 2021-10-20 add /bin/systemctl symlink control logic +# 2022-07-12 Convert try-restart to restart # Usage: # Should be mostly like systemctl from systemd. # Reference: ftemplate.sh 2019-05-02a ; framework.sh 2018-05-02a @@ -28,7 +29,7 @@ # in some service scripts that look for /bin/systemctl # vim: set sw=3 sts=3 ts=3 et: fiversion="2019-05-02a" -systemctlversion="2021-10-20a" +systemctlversion="2022-07-12a" usage() { ${PAGER:-/usr/bin/less -F} >&2 <<ENDUSAGE @@ -409,7 +410,7 @@ case "${action}" in restart|start|stop|status|reload|condrestart|try-restart|reload-or-try-restart) # re-map a few actions case "${action}" in - "reload-or-try-restart") action=restart ;; + "reload-or-try-restart"|try-restart) action=restart ;; esac x=1 while test ${x:-${thiscount}} -le $(( thiscount - 1 )) && test ${thiscount} -gt 1 ; |