Bugzilla – Attachment 49604 Details for
Bug 16138
Restart plack when rotating logfiles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16138: Restart plack when rotating logfiles
Bug-16138-Restart-plack-when-rotating-logfiles.patch (text/plain), 2.26 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-03-28 19:04:32 UTC
(
hide
)
Description:
Bug 16138: Restart plack when rotating logfiles
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-03-28 19:04:32 UTC
Size:
2.26 KB
patch
obsolete
>From 489be8f11ea7070ae5d1d9d851a2526b7a97cc35 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@unc.edu.ar> >Date: Wed, 23 Mar 2016 15:53:01 -0300 >Subject: [PATCH] Bug 16138: Restart plack when rotating logfiles > >On log rotation Starman/Plack keeps failing (Auth.pm related problems) due to >permission issues: > >Could not compile /usr/share/koha/opac/cgi-bin/opac/opac-search.pl: Can't locate Authen/CAS/Client/Response/Failure.pm >: ./Authen/CAS/Client/Response/Failure.pm: Permission denied at /usr/share/perl/5.20/base.pm line 97. > ...propagated at /usr/share/perl/5.20/base.pm line 106. >BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client/Response.pm line 68. >Compilation failed in require at /usr/share/perl5/Authen/CAS/Client.pm line 8. >BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client.pm line 8. >Compilation failed in require at /usr/share/koha/lib/C4/Auth_with_cas.pm line 25. >BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth_with_cas.pm line 25. >Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 63. >BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 90. >Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 34. >BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 34. > >As we do with zebra daemons, starman should be restarted as it doesn't handle log file rotation >gracefully[1]. > >I'm not sure how to reproduce it on a dev environment. > >[1] https://github.com/miyagawa/Starman/issues/55 >--- > debian/koha-common.logrotate | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/koha-common.logrotate b/debian/koha-common.logrotate >index 0299b62..5b6663a 100644 >--- a/debian/koha-common.logrotate >+++ b/debian/koha-common.logrotate >@@ -10,9 +10,11 @@ > sharedscripts > prerotate > /usr/sbin/koha-stop-zebra $(koha-list --enabled) > /dev/null >+ /usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null > endscript > postrotate > /etc/init.d/apache2 reload > /dev/null >+ /usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null > /usr/sbin/koha-start-zebra $(koha-list --enabled) > /dev/null > endscript > } >-- >2.7.3
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 16138
:
49604
|
49736
|
49792