[PATCH 3/4] Add a systemd socket activation for nscd
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Feb 26 17:21:00 GMT 2014
Hi,
Add a socket file for nscd that systemd can used for socket-based
activation. This has been present and working in Fedora.
Siddhesh
* nscd/nscd.service: Add nscd.socket.
* nscd/nscd.socket: New file.
---
nscd/nscd.service | 1 +
nscd/nscd.socket | 8 ++++++++
2 files changed, 9 insertions(+)
create mode 100644 nscd/nscd.socket
diff --git a/nscd/nscd.service b/nscd/nscd.service
index a7b4107..3ca8aa8 100644
--- a/nscd/nscd.service
+++ b/nscd/nscd.service
@@ -18,3 +18,4 @@ PIDFile=/run/nscd/nscd.pid
[Install]
WantedBy=multi-user.target
+Also=nscd.socket
diff --git a/nscd/nscd.socket b/nscd/nscd.socket
new file mode 100644
index 0000000..7e512d5
--- /dev/null
+++ b/nscd/nscd.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=Name Service Cache Daemon Socket
+
+[Socket]
+ListenDatagram=/var/run/nscd/socket
+
+[Install]
+WantedBy=sockets.target
--
1.8.3.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140226/ddce031b/attachment.sig>
More information about the Libc-alpha
mailing list