Package: mongodb-server
Version: 1:2.4.10-1
Severity: normal
Tags: patch

Dear Maintainer,

The mongodb daemon isn't started on systems using systemd because the mongodb 
service isn't enabled during package installation.

The attached patch calls dh_systemd_enable during build to ensure the service 
is enabled. I have tested the patch locally and it works on my workstation.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mongodb-server depends on:
ii  adduser                         3.113+nmu3
ii  init-system-helpers             1.18
ii  libboost-filesystem1.54.0       1.54.0-5
ii  libboost-program-options1.54.0  1.54.0-5
ii  libboost-system1.54.0           1.54.0-5
ii  libboost-thread1.54.0           1.54.0-5
ii  libc6                           2.18-4
ii  libgcc1                         1:4.9-20140411-2
ii  libgoogle-perftools4            2.1-2
ii  libpcre3                        1:8.31-4
ii  libpcrecpp0                     1:8.31-4
ii  libsnappy1                      1.1.2-1
ii  libssl1.0.0                     1.0.1g-3
ii  libstdc++6                      4.9-20140411-2
ii  libv8-3.14.5                    3.14.5.8-6
ii  mongodb-clients                 1:2.4.10-1

mongodb-server recommends no packages.

mongodb-server suggests no packages.

-- no debconf information
--- rules.orig	2013-11-13 10:20:15.000000000 +0100
+++ rules	2014-04-23 22:53:42.501494579 +0200
@@ -48,10 +48,11 @@
 	scons $(DEB_SCONS_INSTALL)
 
 override_dh_installinit:
+	dh_systemd_enable --name=mongodb
 	dh_installinit -pmongodb-server --name=mongodb
 
 %:
-	dh $@ --parallel
+	dh $@ --parallel --with=systemd
 
 .PHONY: override_dh_clean override_dh_auto_build override_dh_auto_test \
 	override_dh_auto_install override_dh_installinit

Reply via email to