This commit is contained in:
Girish Ramakrishnan
2023-02-01 21:52:15 +01:00
parent c07c8b5bb8
commit e856681b3a

View File

@@ -38,7 +38,7 @@ elif [[ "${service}" == "box" ]]; then
readonly ubuntu_version=$(lsb_release -rs)
if [[ "${ubuntu_version}" == "18.04" ]]; then
pid=$(systemctl show box -p MainPID | sed 's/MainPID=//g')
kill -HUP $MAINPID
kill -HUP $pid
else
systemctl reload --no-block box
fi