Use systemctl for all operations

This commit is contained in:
2021-03-31 16:22:18 +02:00
parent a466615d3a
commit 90bff659de

View File

@@ -2,6 +2,7 @@
# Default or unrecognized stops the listed services # Default or unrecognized stops the listed services
serviceOp="stop" serviceOp="stop"
serviceCtl="$(command -v systemctl) -q"
case $1 in case $1 in
start|restart|stop) start|restart|stop)
@@ -11,5 +12,4 @@ case $1 in
serviceOp="stop";; serviceOp="stop";;
esac esac
#/usr/sbin/service danted $serviceOp #"$serviceCtl" $serviceOp danted
#/usr/sbin/service privoxy $serviceOp