diff --git a/.release/linux/postrm b/.release/linux/postrm index 8fa5dcffb..f203cd0c2 100644 --- a/.release/linux/postrm +++ b/.release/linux/postrm @@ -4,4 +4,9 @@ if [ "$1" = "purge" ]; then userdel nomad fi +if [ "$1" == "upgrade" ] && [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + systemctl restart nomad >/dev/null || true +fi + exit 0