ubuntu 18: ExecReload does not work
(cherry picked from commit 7bbc7c2306)
This commit is contained in:
@@ -35,7 +35,9 @@ elif [[ "${service}" == "docker" ]]; then
|
|||||||
elif [[ "${service}" == "collectd" ]]; then
|
elif [[ "${service}" == "collectd" ]]; then
|
||||||
systemctl restart --no-block collectd
|
systemctl restart --no-block collectd
|
||||||
elif [[ "${service}" == "box" ]]; then
|
elif [[ "${service}" == "box" ]]; then
|
||||||
systemctl reload --no-block box
|
# ExecReload does not work on ubuntu 18
|
||||||
|
# systemctl reload --no-block box
|
||||||
|
systemctl kill --signal=SIGHUP box
|
||||||
else
|
else
|
||||||
echo "Unknown service ${service}"
|
echo "Unknown service ${service}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user