[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#796630: rdnssd: Has init script in runlevel S but no matching service file



Control: tags -1 + patch

Hello Felipe Sateler!

On Sat, Aug 22, 2015 at 10:42:00PM -0300, fsateler@debian.org wrote:
[...]
> Your package rdnssd has an initscript that is enabled in runlevel S,
> but it does not provide a corresponding systemd service unit.
[...]

Since rdnssd is QA-maintained, I looked into if I could create a
service file for it and ended up with the attached debdiff.
If you have time to have a look at it that would be great!

Regards,
Andreas Henriksson
diff -Nru ndisc6-1.0.1/debian/changelog ndisc6-1.0.1/debian/changelog
--- ndisc6-1.0.1/debian/changelog	2015-09-14 14:00:02.000000000 +0200
+++ ndisc6-1.0.1/debian/changelog	2015-12-22 08:22:18.000000000 +0100
@@ -1,3 +1,11 @@
+ndisc6 (1.0.1-5) UNRELEASED; urgency=medium
+
+  * QA upload.
+  * Add debian/rdnssd.service (Closes: #796630)
+  * Drop dead/obsolete XS-Vcs-Svn url from debian/control.
+
+ -- Andreas Henriksson <andreas@fatal.se>  Tue, 22 Dec 2015 08:19:53 +0100
+
 ndisc6 (1.0.1-4) unstable; urgency=medium
 
   * QA upload.
diff -Nru ndisc6-1.0.1/debian/control ndisc6-1.0.1/debian/control
--- ndisc6-1.0.1/debian/control	2015-09-14 14:00:00.000000000 +0200
+++ ndisc6-1.0.1/debian/control	2015-12-22 08:19:52.000000000 +0100
@@ -5,7 +5,6 @@
 Build-Depends: cdbs, debhelper (>= 7), autotools-dev, gettext
 Standards-Version: 3.9.1
 Homepage: http://www.remlab.net/ndisc6/
-XS-Vcs-Svn: http://anonsvn.remlab.net/svn/pkg-remlab/ndisc6
 
 Package: ndisc6
 Architecture: any
diff -Nru ndisc6-1.0.1/debian/rdnssd.service ndisc6-1.0.1/debian/rdnssd.service
--- ndisc6-1.0.1/debian/rdnssd.service	1970-01-01 01:00:00.000000000 +0100
+++ ndisc6-1.0.1/debian/rdnssd.service	2015-12-22 08:18:50.000000000 +0100
@@ -0,0 +1,19 @@
+[Unit]
+Description=IPv6 Recursive DNS Server discovery Daemon
+Documentation=man:rdnssd(8)
+Before=network.target
+Requires=network.target
+
+[Service]
+# Note: -u user (default:nobody) only applies to worker process,
+#        manager (executing merge-hook) still runs as root.
+Environment=MERGE_HOOK=/bin/true "OPTIONS=-u rdnssd"
+EnvironmentFile=-/etc/default/rdnssd
+Type=forking
+ExecStartPre=/bin/mkdir -p /var/run/rdnssd
+ExecStartPre=/bin/chown rdnssd:nogroup /var/run/rdnssd
+ExecStartPre=/bin/chmod 0755 /var/run/rdnssd
+ExecStart=/sbin/rdnssd $OPTIONS -H $MERGE_HOOK
+
+[Install]
+WantedBy=multi-user.target

Reply to: