Package: munge
Version: 0.5.11-1.1+b1
Severity: important

Dear Maintainer,

After munge package installation, the munge systemd service is disabled. This
means that the munge service does not start at boot time.

Currently, munge postinst script only runs update-rc.d to enable munge init
script at boot time. But this command does not enable systemd service:

root@login:~# update-rc.d munge defaults

root@login:~# service munge status
● munge.service - MUNGE authentication service
   Loaded: loaded (/lib/systemd/system/munge.service; disabled)
   Active: inactive (dead)                            ^^^^^^^^
     Docs: man:munged(8)

The attached proposed patch adds dh-systemd in Build-Depends and makes use of
dh_system_{enable,start} in d/rules to add appropriate code in munge postinst
in order to enable the service after package installation.

-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages munge depends on:
ii  adduser      3.113+nmu3
ii  libbz2-1.0   1.0.6-7+b3
ii  libc6        2.19-18
ii  libgcrypt20  1.6.3-2
ii  libmunge2    0.5.11-1.1+b1
ii  zlib1g       1:1.2.8.dfsg-2+b1

munge recommends no packages.

munge suggests no packages.

-- no debconf information
diff -Nru munge-0.5.11/debian/changelog munge-0.5.11/debian/changelog
--- munge-0.5.11/debian/changelog	2014-09-17 23:21:02.000000000 +0200
+++ munge-0.5.11/debian/changelog	2015-04-28 21:29:20.000000000 +0200
@@ -1,3 +1,10 @@
+munge (0.5.11-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix munge systemd service disable after package installation
+
+ -- Rémi Palancher <r...@rezib.org>  Tue, 28 Apr 2015 21:27:38 +0200
+
 munge (0.5.11-1.1) unstable; urgency=medium
 
   [ Rémi Palancher <r...@rezib.org>]
diff -Nru munge-0.5.11/debian/control munge-0.5.11/debian/control
--- munge-0.5.11/debian/control	2014-09-17 23:18:44.000000000 +0200
+++ munge-0.5.11/debian/control	2015-04-28 21:15:50.000000000 +0200
@@ -2,7 +2,7 @@
 Section: admin
 Priority: extra
 Maintainer: Gennaro Oliva <oliv...@na.icar.cnr.it>
-Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, po-debconf, dpkg-dev (>= 1.13.19), zlib1g-dev, libbz2-dev, libgcrypt11-dev
+Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, po-debconf, dpkg-dev (>= 1.13.19), zlib1g-dev, libbz2-dev, libgcrypt11-dev, dh-systemd
 Standards-Version: 3.9.5
 Homepage: http://munge.googlecode.com/
 
diff -Nru munge-0.5.11/debian/rules munge-0.5.11/debian/rules
--- munge-0.5.11/debian/rules	2014-09-17 23:19:20.000000000 +0200
+++ munge-0.5.11/debian/rules	2015-04-28 21:30:59.000000000 +0200
@@ -109,7 +109,9 @@
 	dh_installman debian/create-munge-key.8
 	install -m644 debian/libmunge2.lintian debian/libmunge2/usr/share/lintian/overrides/libmunge2
 	dh_compress
+	dh_systemd_enable
 	dh_installinit
+	dh_systemd_start
 	dh_installlogrotate
 	dh_link
 	dh_strip

Reply via email to