Use systemctl for all operations
This commit is contained in:
@@ -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
|
|
||||||
|
Reference in New Issue
Block a user