]> git.donarmstrong.com Git - unscd.git/commitdiff
Add systemd unit file (Closes: #795621)
authorDon Armstrong <don@donarmstrong.com>
Thu, 3 Dec 2015 19:01:37 +0000 (11:01 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 3 Dec 2015 19:01:37 +0000 (11:01 -0800)
debian/changelog
debian/rules
debian/unscd.service [new file with mode: 0644]

index 312c58b76a1721e9000f78b908127ec6928468fc..4085cd695f8f9a5a1b8fffdd197eb7528ef76610 100644 (file)
@@ -4,8 +4,9 @@ unscd (0.52-1) unstable; urgency=medium
 
   [ Thanks to Chris Kuehl <ckuehl@ocf.berkeley.edu> ]
   * Add manpage for unscd and nscd (Closes: #789871)
 
   [ Thanks to Chris Kuehl <ckuehl@ocf.berkeley.edu> ]
   * Add manpage for unscd and nscd (Closes: #789871)
+  * Add systemd unit file (Closes: #795621)
 
 
- --
+ -- Don Armstrong <don@debian.org>  Thu, 03 Dec 2015 10:40:56 -0800
 
 unscd (0.51-1) unstable; urgency=low
 
 
 unscd (0.51-1) unstable; urgency=low
 
index e0ec0238673b5fa85c044c650b022e8645779349..d45f9e4fc6ed610aefb2314a4fd0663d7d35bc18 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
 #!/usr/bin/make -f
 
 %:
-       dh $@
+       dh $@ --with systemd
 
 override_dh_auto_clean:
        rm -f nscd
 
 override_dh_auto_clean:
        rm -f nscd
diff --git a/debian/unscd.service b/debian/unscd.service
new file mode 100644 (file)
index 0000000..e174af0
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Name Service Cache Daemon
+
+[Service]
+User=root
+ExecStart=/usr/sbin/nscd -d
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file