summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@debian.org>2015-03-07 10:23:13 +0000
committerAndrew Lewis <nerf@judo.za.org>2015-03-17 18:58:34 +0200
commite10ddbdaefe0c74875648bf182e000d0b5e42a82 (patch)
treecdf71839278ddcbc8c75454e11d6d39d2378aff4 /debian/rules
parentaf765c345234e920a4c45ba24af156a029304ab9 (diff)
downloadrspamd-e10ddbdaefe0c74875648bf182e000d0b5e42a82.tar.gz
rspamd-e10ddbdaefe0c74875648bf182e000d0b5e42a82.zip
Work around Debian mishandling of systemd socket-activated units
If there is a backward compatibility sysvinit script, then even socket-activated services are started automatically after install/upgrade.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 9eb1014f1..e3959eb57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,5 +32,11 @@ override_dh_fixperms:
dh_fixperms
chmod 750 $(CURDIR)/debian/rspamd/var/lib/rspamd
+override_dh_systemd_enable:
+ dh_systemd_enable rspamd.socket
+
override_dh_systemd_start:
- dh_systemd_start --restart-after-upgrade
+ dh_systemd_start --restart-after-upgrade --no-start
+
+override_dh_installinit:
+ dh_installinit -n