Package: mongodb-server
Version: 1:2.4.5-1.1
Severity: normal
Tags: patch
User: pkg-systemd-maintain...@lists.alioth.debian.org
Usertags: systemd-units
X-Debbugs-CC: pkg-systemd-maintain...@lists.alioth.debian.org
--- Please enter the report below this line. ---
The fallowing patch adds systemd service by use dh_systemd
Please include.
--- System information. ---
Architecture: amd64
Kernel: Linux 3.10-1-amd64
Debian Release: jessie/sid
500 unstable ftp.by.debian.org
1 experimental ftp.by.debian.org
--- Package information. ---
Depends (Version) | Installed
================================================-+-==============
adduser | 3.113+nmu3
mongodb-clients | 1:2.4.5-1.1
libboost-filesystem1.49.0 (>= 1.49.0-1) | 1.49.0-4
libboost-program-options1.49.0 (>= 1.49.0-1) | 1.49.0-4
libboost-system1.49.0 (>= 1.49.0-1) | 1.49.0-4
libboost-thread1.49.0 (>= 1.49.0-1) | 1.49.0-4
libc6 (>= 2.14) |
libgcc1 (>= 1:4.1.1) |
libgoogle-perftools4 |
libpcre3 (>= 8.10) |
libpcrecpp0 (>= 7.7) |
libsnappy1 |
libstdc++6 (>= 4.6) |
Package's Recommends field is empty.
Package's Suggests field is empty.
>From 186a6d5227dcb0de50f432a56a302b10a59a8611 Mon Sep 17 00:00:00 2001
From: Viktar Vauchkevich <victorena...@gmail.com>
Date: Fri, 19 Jul 2013 13:28:54 +0300
Subject: [PATCH] add mongodb.service by use dh_systemd
---
debian/control | 1 +
debian/mongodb-server.mongodb.service | 10 ++++++++++
2 files changed, 11 insertions(+)
create mode 100644 debian/mongodb-server.mongodb.service
diff --git a/debian/control b/debian/control
index 9e535a9..a8f772b 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Uploaders:
Build-Depends:
cdbs (>= 0.4.73~),
debhelper (>= 9),
+ dh-systemd (>= 1.5),
libboost-date-time-dev,
libboost-dev,
libboost-filesystem-dev,
diff --git a/debian/mongodb-server.mongodb.service b/debian/mongodb-server.mongodb.service
new file mode 100644
index 0000000..a73d760
--- /dev/null
+++ b/debian/mongodb-server.mongodb.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=An object/document-oriented database
+Documentation=man:mongod(1)
+
+[Service]
+User=mongodb
+ExecStart=/usr/bin/mongod --config /etc/mongodb.conf
+
+[Install]
+WantedBy=multi-user.target
--
1.8.3.2