Bugzilla – Attachment 20035 Details for
Bug 10670
/etc/init.d/koha-common fails to start zebra due to log permission problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10670 - koha-common fails to start zebra without log permissions
Bug-10670---koha-common-fails-to-start-zebra-witho.patch (text/plain), 1.85 KB, created by
Dobrica Pavlinusic
on 2013-08-01 11:45:04 UTC
(
hide
)
Description:
Bug 10670 - koha-common fails to start zebra without log permissions
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2013-08-01 11:45:04 UTC
Size:
1.85 KB
patch
obsolete
>From c0bf045e53bd071282c0d833ec3727b9c1a46e34 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Thu, 1 Aug 2013 13:26:03 +0200 >Subject: [PATCH] Bug 10670 - koha-common fails to start zebra without log permissions > >If koha-common is started when zebra log files are owned by root >it will fail to start without any useful message (since zebra can't >write errors in log files because it lacks permissions to do so). > >This patch creates empty log files and ensure they have correct >permissions. > >I can't pin-point why log files gets owned root, but I suspect it >has something to do with zebra crashing and logrotate, but this is >just theory. We have seen this behaviour since koha 3.1 every >few months, and every time it happends we have root owned logs and >crashed zebra so this patch will at least help sites which have >some kind of automatic koha-common start if it's not running. >--- > debian/scripts/koha-start-zebra | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/debian/scripts/koha-start-zebra b/debian/scripts/koha-start-zebra >index 222b0ef..f63ab42 100755 >--- a/debian/scripts/koha-start-zebra >+++ b/debian/scripts/koha-start-zebra >@@ -77,6 +77,13 @@ start_zebra_instance() > > if is_enabled $instancename; then > echo "Starting Zebra server for $instancename" >+ touch "/var/log/koha/$instancename/zebra-error.log" \ >+ "/var/log/koha/$instancename/zebra.log" \ >+ "/var/log/koha/$instancename/zebra-output.log" >+ chown "$instancename-koha:$instancename-koha" \ >+ "/var/log/koha/$instancename/zebra-error.log" \ >+ "/var/log/koha/$instancename/zebra.log" \ >+ "/var/log/koha/$instancename/zebra-output.log" > daemon \ > --name="$instancename-koha-zebra" \ > --errlog="/var/log/koha/$instancename/zebra-error.log" \ >-- >1.7.2.5
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 10670
:
20035
|
22952