diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst index b7ec5041d5..5a67453fd5 100644 --- a/debian/koha-common.postinst +++ b/debian/koha-common.postinst @@ -4,4 +4,19 @@ set -e #DEBHELPER# +if [ "$1" = "configure" ]; then + # koha-common is the package that pulls in RabbitMQ and memcached, so + # it keeps the service-level steps the monolithic package used to run. + + # Koha's background jobs reach RabbitMQ over STOMP: make sure the plugin + # is enabled and the broker has picked it up. + if command -v rabbitmq-plugins >/dev/null 2>&1; then + rabbitmq-plugins enable rabbitmq_stomp + service rabbitmq-server restart || true + fi + + # Bug 35242: Force memcache restart after koha install/upgrade + service memcached restart || true +fi + exit 0 diff --git a/debian/koha-full.postinst b/debian/koha-full.postinst index 2e16772c8b..3467c1049c 100644 --- a/debian/koha-full.postinst +++ b/debian/koha-full.postinst @@ -5,7 +5,4 @@ set -e a2enmod mpm_itk rewrite cgi rewrite headers proxy_http service apache2 restart -rabbitmq-plugins enable rabbitmq_stomp -service rabbitmq-server restart - exit 0