sunetdrive/templates/scriptreceiver/restart_sunet_service.erb.sh

11 lines
184 B
Bash
Raw Normal View History

2023-02-13 09:44:56 +00:00
#!/bin/bash
service="${1}"
if [[ "x${service}" == "x" ]]; then
echo "usage: ${0} <service>"
echo "example: ${0} proxysql"
exit 1
fi
systemctl restart sunet-"${service}".service