Bugzilla – Attachment 75590 Details for
Bug 17311
koha-common service should be restarted on upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17311: koha-common service should be restarted on upgrade
Bug-17311-koha-common-service-should-be-restarted-.patch (text/plain), 1.53 KB, created by
Mirko Tietgen
on 2018-05-28 14:13:34 UTC
(
hide
)
Description:
Bug 17311: koha-common service should be restarted on upgrade
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2018-05-28 14:13:34 UTC
Size:
1.53 KB
patch
obsolete
>From 46098ae7ab1c38cd586fe382fe3f43b7f85f8334 Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >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 <mirko@abunchofthings.net> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17311
: 75590