Skip to content

Commit 0d8fc7e

Browse files
committed
Do not enable zebrasrv.service by default
The package does not include a zebrasrv configuration file.
1 parent 863e32c commit 0d8fc7e

2 files changed

Lines changed: 11 additions & 24 deletions

File tree

debian/idzebra-2.0-utils.postinst

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,18 @@ fi
1616

1717
# Automatically added by dh_installsystemd/13.24.2
1818
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
19-
# The following line should be removed in trixie or trixie+1
20-
deb-systemd-helper unmask 'zebrasrv.service' >/dev/null || true
19+
if deb-systemd-helper debian-installed 'zebrasrv.service'; then
20+
# The following line should be removed in trixie or trixie+1
21+
deb-systemd-helper unmask 'zebrasrv.service' >/dev/null || true
2122

22-
# was-enabled defaults to true, so new installations run enable.
23-
if deb-systemd-helper --quiet was-enabled 'zebrasrv.service'; then
24-
# Enables the unit on first installation, creates new
25-
# symlinks on upgrades if the unit file has changed.
26-
deb-systemd-helper enable 'zebrasrv.service' >/dev/null || true
27-
else
28-
# Update the statefile to add new symlinks (if any), which need to be
29-
# cleaned up on purge. Also remove old symlinks.
30-
deb-systemd-helper update-state 'zebrasrv.service' >/dev/null || true
31-
fi
32-
fi
33-
# End automatically added section
34-
# Automatically added by dh_installsystemd/13.24.2
35-
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
36-
if [ -d /run/systemd/system ]; then
37-
systemctl --system daemon-reload >/dev/null || true
38-
if [ -n "$2" ]; then
39-
_dh_action=restart
40-
else
41-
_dh_action=start
23+
if deb-systemd-helper --quiet was-enabled 'zebrasrv.service'; then
24+
# Create new symlinks, if any.
25+
deb-systemd-helper enable 'zebrasrv.service' >/dev/null || true
4226
fi
43-
deb-systemd-invoke $_dh_action 'zebrasrv.service' >/dev/null || true
4427
fi
28+
29+
# Update the statefile to add new symlinks (if any), which need to be cleaned
30+
# up on purge. Also remove old symlinks.
31+
deb-systemd-helper update-state 'zebrasrv.service' >/dev/null || true
4532
fi
4633
# End automatically added section

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ override_dh_installinit:
2929
dh_installinit --name=zebrasrv
3030

3131
override_dh_installsystemd:
32-
dh_installsystemd --name=zebrasrv
32+
dh_installsystemd --no-start --no-enable --name=zebrasrv
3333

3434
override_dh_installchangelogs:
3535
dh_installchangelogs NEWS

0 commit comments

Comments
 (0)