Koha-clms/debian/systemd
Martin Renvoize e1e08a7f5d
Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd
Under koha-sysv the daemon(1) wrapper captures each daemon's stdout and
stderr to /var/log/koha/INSTANCE/NAME-output.log and NAME-error.log.
The systemd units sent that output to the journal instead, so
zebra-*.log, indexer-*.log, es-indexer-*.log, worker-*.log and
sip-error.log silently stopped being written on migrated hosts, and
log locations differed between the two init packages.

Use StandardOutput=append: and StandardError=append: on those six
units so the files are identical whichever package supervises the
daemons. The shipped logrotate stanza uses copytruncate, which is safe
with append-mode descriptors. The journal still records systemd's own
messages about each unit, which is what matters when one fails to
start, and README.Debian shows the drop-in for sites that prefer the
journal. Plack and the Z39.50 responder already wrote their own files.

The README, NEWS.Debian entry and koha-common(8) text that described
the journal-only behaviour are updated accordingly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-09-29 09:02:39 +00:00
..
koha-common.service Bug 40901: (QA follow-up) Make koha-common.service a dependency-free shim 2026-09-29 09:02:30 +00:00
koha-create-dirs@.service Bug 40901: (follow-up) Order per-component units after koha-create-dirs 2026-09-29 09:01:56 +00:00
koha-es-indexer@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha-indexer@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha-plack@.service Bug 40901: (QA follow-up) Polish the per-component units 2026-09-29 09:02:32 +00:00
koha-sip@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha-systemd-ctl Bug 40901: (QA follow-up) Harden the service abstraction in koha-functions.sh 2026-09-29 09:02:35 +00:00
koha-worker-long_tasks@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha-worker@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha-z3950@.service Bug 40901: (QA follow-up) Polish the per-component units 2026-09-29 09:02:32 +00:00
koha-zebra@.service Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
koha.target Bug 40901: Add koha-systemd package with native systemd units 2026-09-29 09:01:21 +00:00
koha@.target Bug 40901: (QA follow-up) Polish the per-component units 2026-09-29 09:02:32 +00:00