This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/4] Add a systemd socket activation for nscd


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

Attachment: pgpMPbDy1VeNm.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]