diff --git a/debian/koha-systemd.postinst b/debian/koha-systemd.postinst index 72efb7a6d9..d906630619 100644 --- a/debian/koha-systemd.postinst +++ b/debian/koha-systemd.postinst @@ -6,6 +6,14 @@ case "$1" in # Reload systemd daemon systemctl daemon-reload || true ;; + + # on upgrade, restart running Koha services so they pick up new code/unit files + if [ -n "$2" ]; then + deb-systemd-invoke try-restart \ + 'koha-*@*.service' \ + >/dev/null || true + fi + esac #DEBHELPER#