Files
shell_sequencer/seqs/openvpn/vpn-services

16 lines
300 B
Bash
Executable File

#!/bin/bash
# Default or unrecognized stops the listed services
serviceOp="stop"
serviceCtl="$(command -v systemctl) -q"
case $1 in
start|restart|stop)
serviceOp="$1";;
*)
>&2 echo "Unrecognized argument. Stopping services"
serviceOp="stop";;
esac
#"$serviceCtl" $serviceOp danted