From 73616a74274223356c99dda66234f54932bb8c16 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 16 Dec 2013 11:21:08 +1000 Subject: Add systemd unit file for nscd Provide an example systemd unit and tmpfile for running nscd. --- nscd/nscd.service | 18 ++++++++++++++++++ nscd/nscd.tmpfiles | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 nscd/nscd.service create mode 100644 nscd/nscd.tmpfiles (limited to 'nscd') diff --git a/nscd/nscd.service b/nscd/nscd.service new file mode 100644 index 0000000..99c7563 --- /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 0000000..52edbba --- /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 -- cgit v1.1