Description of problem:
When activated, nscd is not started properly by systemd.
It looks like the configured pidfile in the systemd unit does not match
the actual one :
$ grep PID /usr/lib/systemd/system/nscd.service
while the file is written in /var/run/nscd/nscd.pid by the daemon.
Systemd is then stuck on his waiting for the pid file creation.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. systemctl start nscd
systemd: Starting Name Service Cache Daemon...
systemd: PID file /run/nscd/nscd.pid not readable (yet?) after start.
systemd: nscd.service operation timed out. Terminating.
systemd: Failed to start Name Service Cache Daemon.
systemd: Started Name Service Cache Daemon.
Modifying the unit file resolves the issue :
$ sed -i 's@PIDFile=/run/nscd/nscd.pid@PIDFile/var/run/nscd/nscd.pid@' /usr/lib/systemd/system/nscd.service
This is weird, /var/run should be a symlink to /run.
Also you have a typo in your sed expression, there is '=' missing in the second part.
But I have tried nscd on my rhel7 and it simply works out of box.
You are right, the problem is my side with a non-existent symlink. I focused on the content of the package. Sorry for your time.