#!/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