Koha/debian
Marcel de Rooy af47f00636 Bug 15713: Restart zebra when rotating logfiles
Somehow, it may happen that Zebra keeps writing to the old rotated logfile
with extension .log.1. I must add that although I saw that happen (a new
log was created and was empty, while Zebra kept writing to log.1 for weeks),
I cannot reproduce it every time.

By stopping the zebra server in prerotate and starting it again in
postrotate, this should not happen at all. In practice, this implies that
your Zebra server is restarted once a week.

Note: The existing sharedscripts directive makes sure that these actions
are not executed for all individual logfiles but once for all matching
logfiles (even when running multiple instances).

Test plan:
[1] Apply the change in koha-common.logrotate to the file
    /etc/logrotate.d/koha-common.
[2] Run logrotate -f /etc/logrotate.conf (forcing a logrotate).
[3] Check in zebra-error.log that your zebra server was stopped
    ('killed by signal 15').
[4] Verify that your Zebra server runs (read: has been restarted).
    (Do a search..)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-02-24 03:41:10 +00:00
..
docs Bug 14674: [QA Follow-up] Typos and textual adjustment 2015-10-23 10:09:32 -03:00
scripts Bug 15714: Remove zebra.log and add loglevels 2016-02-24 03:38:18 +00:00
source
templates Bug 15714: Add zebra_loglevels to koha-conf.xml 2016-02-24 03:38:18 +00:00
bd-to-depends
build-git-snapshot
changelog Changelog update for 3.22.00~beta 2015-11-17 23:41:16 -03:00
compat
control Bug 11081: (followup) Rebuild debian/control 2016-02-16 18:52:36 +00:00
control.in new Debian package maintainer 2015-12-05 01:26:11 +00:00
copyright
koha-common.bash-completion Bug 14727: koha-indexer tab completion in bash 2015-10-13 11:37:55 -03:00
koha-common.config
koha-common.cron.d
koha-common.cron.daily Bug 14840: Added new cron script send membership expiry reminder notices in crontab.example file 2015-10-06 11:21:18 -03:00
koha-common.cron.hourly
koha-common.cron.monthly
koha-common.default
koha-common.dirs
koha-common.docs
koha-common.init
koha-common.install Bug 13143 - Add a tool to show a Koha's password 2016-01-27 06:27:07 +00:00
koha-common.logrotate Bug 15713: Restart zebra when rotating logfiles 2016-02-24 03:41:10 +00:00
koha-common.postinst
koha-common.preinst
koha-common.README.Debian
koha-common.templates
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps
README.build
rules
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.