From 0832ebf052b171434ca404a86aa8aae841a32a83 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 1 Feb 2023 17:28:05 +0100 Subject: [PATCH] ubuntu 18: ExecReload does not work (cherry picked from commit 7bbc7c230622c775d4c132d76ed7883cbc3feb14) --- src/scripts/restartservice.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/restartservice.sh b/src/scripts/restartservice.sh index a80958885..274a453fc 100755 --- a/src/scripts/restartservice.sh +++ b/src/scripts/restartservice.sh @@ -35,7 +35,9 @@ elif [[ "${service}" == "docker" ]]; then elif [[ "${service}" == "collectd" ]]; then systemctl restart --no-block collectd 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 echo "Unknown service ${service}" exit 1