aboutsummaryrefslogtreecommitdiff
path: root/systemctl
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-07-12 11:25:15 -0400
committerB. Stack <bgstack15@gmail.com>2022-07-12 11:25:15 -0400
commitabc6202a58637613b08ff2a3094d21686f0b1a85 (patch)
tree5f6c0af08eb8afb99053e1d05349ea869bbd0c10 /systemctl
parentadd symlink control logic (diff)
downloadsystemctl-service-shim-upstream/0.0.3.tar.gz
systemctl-service-shim-upstream/0.0.3.tar.bz2
systemctl-service-shim-upstream/0.0.3.zip
v0.0.3 closes #688upstream/0.0.3
Diffstat (limited to 'systemctl')
-rwxr-xr-xsystemctl5
1 files changed, 3 insertions, 2 deletions
diff --git a/systemctl b/systemctl
index 23e799c..5d1d578 100755
--- a/systemctl
+++ b/systemctl
@@ -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 ;
bgstack15