From 46098ae7ab1c38cd586fe382fe3f43b7f85f8334 Mon Sep 17 00:00:00 2001 From: Mirko Tietgen Date: Fri, 25 May 2018 17:35:27 +0200 Subject: [PATCH] Bug 17311: koha-common service should be restarted on upgrade This patch stops koha-common before upgrades and restarts memcached, koha-common and apache after upgrades Signed-off-by: Mirko Tietgen --- debian/koha-common.postinst | 8 ++++++++ debian/koha-common.preinst | 3 +++ 2 files changed, 11 insertions(+) diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst index 23c4d01ac4..a5f7f177cd 100644 --- a/debian/koha-common.postinst +++ b/debian/koha-common.postinst @@ -148,4 +148,12 @@ db_stop update-rc.d koha-common disable update-rc.d koha-common enable +#start service koha-common +echo "Restarting memcached …" +service memcached restart +echo "Starting service koha-common …" +service koha-common start +echo "Restarting service apache2 …" +service apache2 restart + exit 0 diff --git a/debian/koha-common.preinst b/debian/koha-common.preinst index b9d43abfb1..1a466f4026 100644 --- a/debian/koha-common.preinst +++ b/debian/koha-common.preinst @@ -2,6 +2,9 @@ set -e +# stop service koha-common before upgrade +[ -e /etc/init.d/koha-common ] && echo "Stopping service koha-common …" && service koha-common stop + # Bug 14055 - remove the yui symlink if there's one in the way preventing upgrades [ -h /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui ] && rm /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui -- 2.17.0