Koha-clms/debian
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
..
docs Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
scripts Bug 40901: (QA follow-up) Make koha-disable/koha-enable symmetric and fix koha-remove/koha-create 2026-09-29 09:02:36 +00:00
source Bug 32994: Remove compiled files from src (2) 2023-02-22 10:03:25 -03:00
systemd Bug 40901: (QA follow-up) Keep daemon output in the traditional log files under systemd 2026-09-29 09:02:39 +00:00
templates Bug 40901: (QA follow-up) Remove redundant unit files ( koha-sysv.service, koha-worker@.service ) 2026-09-29 09:02:13 +00:00
README.build
…
bd-to-depends
…
build-git-snapshot Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
changelog Update debian/changelog file: 22.12.00-3 2023-02-20 09:44:12 -03:00
clean Bug 32994: Remove compiled files from src (2) 2023-02-22 10:03:25 -03:00
compat Bug 18908: Warning "Compatibility levels before 9 are deprecated" 2018-03-19 13:55:47 -03:00
control Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
control.in Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
copyright Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-common.README.Debian
…
koha-common.docs Bug 35713: Remove outdated debian/docs/LEEME.Debian file 2024-01-11 12:10:45 +01:00
koha-common.maintscript Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-common.postinst Bug 40901: (QA follow-up) Restore the RabbitMQ and memcached steps in koha-common.postinst 2026-09-29 09:02:25 +00:00
koha-common.preinst Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.bash-completion Bug 40901: (testing follow-up) Remove / rename koha-common to koha-core 2026-09-29 09:01:25 +00:00
koha-core.config Bug 40901: (QA follow-up) Migrate debconf answers from koha-common to koha-core 2026-09-29 09:02:26 +00:00
koha-core.dirs Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-core.docs Bug 35713: Remove outdated debian/docs/LEEME.Debian file 2024-01-11 12:10:45 +01:00
koha-core.install Bug 33108: koha-es-indexer added 2023-03-20 09:39:45 -03:00
koha-core.koha-common.cron.d Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.daily Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.hourly Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.cron.monthly Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.default Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.koha-common.logrotate Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.links Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.maintscript Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.postinst Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.preinst Bug 40901: (QA follow-up) Keep /etc conffiles under their koha-common names 2026-09-29 09:02:24 +00:00
koha-core.templates Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-full.postinst Bug 40901: (QA follow-up) Restore the RabbitMQ and memcached steps in koha-common.postinst 2026-09-29 09:02:25 +00:00
koha-post-install-setup Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
koha-systemd.NEWS 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.README.Debian 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.dirs Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
koha-systemd.install Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
koha-systemd.postinst Bug 40901: (QA follow-up) Fix the koha-systemd migration, upgrade and removal paths 2026-09-29 09:02:34 +00:00
koha-systemd.postrm Bug 40901: (QA follow-up) Fix the koha-systemd migration, upgrade and removal paths 2026-09-29 09:02:34 +00:00
koha-systemd.prerm Bug 40901: (QA follow-up) Fix the koha-systemd migration, upgrade and removal paths 2026-09-29 09:02:34 +00:00
koha-sysv.koha-common.init Bug 40901: (QA follow-up) Install the SysV init script through dh_installinit 2026-09-29 09:02:22 +00:00
koha-sysv.postinst Bug 40901: (QA follow-up) Install the SysV init script through dh_installinit 2026-09-29 09:02:22 +00:00
koha.README.Debian Bug 5550 - correct filename referenced in docs 2011-01-01 07:43:30 +13:00
koha.apache-ports
…
koha.config
…
koha.dirs Replace old, non-functional Debian packaging with a new one. 2010-04-16 00:41:54 -04:00
koha.install Bug 14302: Remove GRS1 specific code 2018-08-31 11:24:20 +00:00
koha.postinst Bug 25691: Replace link to non-existing README with wiki link 2024-01-16 12:06:08 +01:00
koha.postrm When purging, remove /var/log/koha. 2010-04-22 06:15:31 -04:00
koha.prerm Replace old, non-functional Debian packaging with a new one. 2010-04-16 00:41:54 -04:00
list-deps Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
rules Bug 40901: (QA follow-up) Install units to /lib/systemd/system and tidy control 2026-09-29 09:02:28 +00:00
unavailable.html
…
update-control Add tools to update debian/control's build dependencies. 2010-06-02 07:14:36 -04:00

README.build

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.