Package: memcached
Version: 1.4.13-0.2
Severity: wishlist
Tags: upstream

please accept the fallowing patch which adds systemd support to memcached

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: armhf (armv7l)

Kernel: Linux 3.4.0 (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

Versions of packages memcached depends on:
ii  libc6           2.17-7
ii  libevent-2.0-5  2.0.21-stable-1
ii  libsasl2-2      2.1.25.dfsg1-13
ii  lsb-base        4.1+Debian12
ii  perl            5.14.2-21

memcached recommends no packages.

Versions of packages memcached suggests:
pn  libcache-memcached-perl  <none>
pn  libmemcached             <none>

-- no debconf information
>From c6126353aa71eca0a07b8676112aea64d9a491d7 Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnland...@gmail.com>
Date: Sat, 13 Jul 2013 14:32:54 -0700
Subject: [PATCH] add systemd memcached.service

---
 debian/control           |  2 +-
 debian/memcached.service | 11 +++++++++++
 debian/rules             |  4 +++-
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 debian/memcached.service

diff --git a/debian/control b/debian/control
index b939d2d..78735d0 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: web
 Priority: optional
 Maintainer: David Martínez Moreno <en...@debian.org>
 Build-Depends: debhelper (>= 6), libevent-dev, quilt (>= 0.46-7), libsasl2-dev,
- dpkg-dev (>= 1.15.7)
+ dpkg-dev (>= 1.15.7), dh-systemd
 Homepage: http://www.danga.com/memcached/
 Standards-Version: 3.8.4
 
diff --git a/debian/memcached.service b/debian/memcached.service
new file mode 100644
index 0000000..d2c63a5
--- /dev/null
+++ b/debian/memcached.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A high-performance memory object caching system
+
+[Service]
+EnvironmentFile=-/etc/default/memcached
+ExecStartPre=/usr/bin/test no != ${ENABLE_MEMCACHED}
+ExecStart=/usr/bin/memcached
+User=daemon
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index 2a24a62..d6cfe1b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -86,8 +86,10 @@ binary-arch: build install
 	dh_installdocs
 	dh_installexamples
 	dh_install
-	dh_installdebconf	
+	dh_installdebconf
+	dh_systemd_enable	
 	dh_installinit
+	dh_systemd_start
 	dh_installman
 	dh_link
 	dh_strip
-- 
1.8.3.2

Reply via email to