Carlos O'Donell 0e17ea2
Short description: Add syslog.target dependency.
Carlos O'Donell 0e17ea2
Author(s): Fedora glibc team <glibc@lists.fedoraproject.org>
Carlos O'Donell 0e17ea2
Origin: PATCH
Carlos O'Donell 0e17ea2
Bug-Fedora: #1070416
Carlos O'Donell 0e17ea2
Upstream status: not-needed
Carlos O'Donell 0e17ea2
Carlos O'Donell 0e17ea2
Fedora-specific changes to the nscd.service file.
Carlos O'Donell 0e17ea2
See also: glibc-nscd-sysconfig.patch.
Carlos O'Donell 0e17ea2
Siddhesh Poyarekar bdbcf83
--- a/nscd/nscd.service
Siddhesh Poyarekar bdbcf83
+++ b/nscd/nscd.service
43bff16
@@ -2,6 +2,7 @@
Siddhesh Poyarekar bdbcf83
 
Siddhesh Poyarekar bdbcf83
 [Unit]
Siddhesh Poyarekar bdbcf83
 Description=Name Service Cache Daemon
Siddhesh Poyarekar bdbcf83
+After=syslog.target
Siddhesh Poyarekar bdbcf83
 
Siddhesh Poyarekar bdbcf83
 [Service]
43bff16
 Type=forking
Siddhesh Poyarekar b7b25cd
@@ -17,3 +18,4 @@
Siddhesh Poyarekar bdbcf83
 
Siddhesh Poyarekar bdbcf83
 [Install]
Siddhesh Poyarekar bdbcf83
 WantedBy=multi-user.target
Siddhesh Poyarekar bdbcf83
+Also=nscd.socket
Siddhesh Poyarekar bdbcf83
diff --git a/nscd/nscd.socket b/nscd/nscd.socket
Siddhesh Poyarekar bdbcf83
new file mode 100644
Siddhesh Poyarekar bdbcf83
index 0000000..7e512d5
Siddhesh Poyarekar bdbcf83
--- /dev/null
Siddhesh Poyarekar bdbcf83
+++ b/nscd/nscd.socket
Siddhesh Poyarekar bdbcf83
@@ -0,0 +1,8 @@
Siddhesh Poyarekar bdbcf83
+[Unit]
Siddhesh Poyarekar bdbcf83
+Description=Name Service Cache Daemon Socket
Siddhesh Poyarekar bdbcf83
+
Siddhesh Poyarekar bdbcf83
+[Socket]
Siddhesh Poyarekar bdbcf83
+ListenDatagram=/var/run/nscd/socket
Siddhesh Poyarekar bdbcf83
+
Siddhesh Poyarekar bdbcf83
+[Install]
Siddhesh Poyarekar bdbcf83
+WantedBy=sockets.target