View | Details | Raw Unified | Return to bug 40901
Collapse All | Expand All

(-)a/debian/control.in (+16 lines)
Lines 162-164 Description: systemd units for Koha ILS Link Here
162
 This allows granular control over individual services per instance and
162
 This allows granular control over individual services per instance and
163
 leverages systemd features like dependency management, resource limits,
163
 leverages systemd features like dependency management, resource limits,
164
 and journald logging.
164
 and journald logging.
165
166
Package: koha-sysv
167
Architecture: all
168
Depends: ${misc:Depends}, daemon, koha-common
169
Provides: koha-init
170
Conflicts: koha-systemd
171
Description: SysV init scripts for Koha ILS
172
 Koha is an Integrated Library Management system for real-world libraries
173
 (the kinds with books).
174
 .
175
 This package provides traditional SysV init.d scripts for managing Koha
176
 instances. All services (Plack, Zebra, SIP, Z3950, workers, indexers) are
177
 managed through a single init script using the daemon wrapper.
178
 .
179
 This package is intended for legacy systems, containers without systemd
180
 (like KTD), or environments where SysV init is preferred.
(-)a/debian/koha-sysv.install (+2 lines)
Line 0 Link Here
1
debian/koha-common.init etc/init.d/koha-common
2
debian/koha-common.service lib/systemd/system/
(-)a/debian/koha-sysv.postinst (+13 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
set -e
4
5
#DEBHELPER#
6
7
# Enable and start the service on systemd systems
8
if [ -d /run/systemd/system ]; then
9
    deb-systemd-helper enable koha-common.service >/dev/null || true
10
    deb-systemd-invoke start koha-common.service >/dev/null || true
11
fi
12
13
exit 0
(-)a/debian/koha-sysv.postrm (+15 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
set -e
4
5
if [ "$1" = "purge" ]; then
6
    # Disable the service on systemd systems
7
    if [ -d /run/systemd/system ]; then
8
        deb-systemd-helper purge koha-common.service >/dev/null || true
9
        deb-systemd-helper unmask koha-common.service >/dev/null || true
10
    fi
11
fi
12
13
#DEBHELPER#
14
15
exit 0
(-)a/debian/koha-sysv.prerm (-1 / +16 lines)
Line 0 Link Here
0
- 
1
#!/bin/sh
2
3
set -e
4
5
if [ "$1" = "remove" ]; then
6
    # Stop the service
7
    if [ -d /run/systemd/system ]; then
8
        deb-systemd-invoke stop koha-common.service >/dev/null || true
9
    else
10
        invoke-rc.d koha-common stop || true
11
    fi
12
fi
13
14
#DEBHELPER#
15
16
exit 0

Return to bug 40901