remove various 18.04 specific code

This commit is contained in:
Girish Ramakrishnan
2025-06-15 13:58:28 +02:00
parent 2d5ef36a7f
commit 0ebda97b03
3 changed files with 2 additions and 17 deletions

View File

@@ -34,15 +34,8 @@ elif [[ "${service}" == "docker" ]]; then
elif [[ "${service}" == "collectd" ]]; then
systemctl restart --no-block collectd
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 $pid
else
systemctl reload --no-block box
fi
systemctl reload --no-block box
else
echo "Unknown service ${service}"
exit 1
fi