summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-12-16 11:21:08 +1000
committerAllan McRae <allan@archlinux.org>2013-12-16 11:22:01 +1000
commit73616a74274223356c99dda66234f54932bb8c16 (patch)
tree28a0f6ecd292f98b86f9922a94b9b208fb928350 /nscd
parent584b18eb4df61ccd447db2dfe8c8a7901f8c8598 (diff)
downloadglibc-73616a74274223356c99dda66234f54932bb8c16.tar.gz
glibc-73616a74274223356c99dda66234f54932bb8c16.tar.xz
glibc-73616a74274223356c99dda66234f54932bb8c16.zip
Add systemd unit file for nscd
Provide an example systemd unit and tmpfile for running nscd.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd.service18
-rw-r--r--nscd/nscd.tmpfiles4
2 files changed, 22 insertions, 0 deletions
diff --git a/nscd/nscd.service b/nscd/nscd.service
new file mode 100644
index 0000000000..99c7563990
--- /dev/null
+++ b/nscd/nscd.service
@@ -0,0 +1,18 @@
+# systemd service file for nscd
+
+[Unit]
+Description=Name Service Cache Daemon
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/nscd --foreground
+ExecStop=/usr/sbin/nscd --shutdown
+ExecReload=/usr/sbin/nscd -i passwd
+ExecReload=/usr/sbin/nscd -i group
+ExecReload=/usr/sbin/nscd -i hosts
+ExecReload=/usr/sbin/nscd -i services
+Restart=always
+PIDFile=/run/nscd/nscd.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/nscd/nscd.tmpfiles b/nscd/nscd.tmpfiles
new file mode 100644
index 0000000000..52edbba673
--- /dev/null
+++ b/nscd/nscd.tmpfiles
@@ -0,0 +1,4 @@
+# Configuration to create /run/nscd directory
+# Used as part of systemd's tmpfiles
+
+d /run/nscd 0755 root root