do not block for service to restart

This commit is contained in:
Girish Ramakrishnan
2021-06-21 10:05:22 -07:00
parent 79ec7fb245
commit c16a7c1f45

View File

@@ -23,13 +23,13 @@ service="$1"
if [[ "${service}" == "unbound" ]]; then
unbound-anchor -a /var/lib/unbound/root.key
systemctl restart unbound
systemctl restart --no-block unbound
elif [[ "${service}" == "nginx" ]]; then
nginx -s reload
elif [[ "${service}" == "docker" ]]; then
systemctl restart docker
systemctl restart --no-block docker
elif [[ "${service}" == "collectd" ]]; then
systemctl restart collectd
systemctl restart --no-block collectd
else
echo "Unknown service ${service}"
exit 1