diff --git a/src/scripts/restartservice.sh b/src/scripts/restartservice.sh index 1a3fd4d63..96b55d5a0 100755 --- a/src/scripts/restartservice.sh +++ b/src/scripts/restartservice.sh @@ -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