nscd service does not start and status shows as activating
Issue
- nscd service does not start
# systemctl start nscd
Authorization not available. Check if polkit service is running or see debug message for more information.
Job for nscd.service failed because a timeout was exceeded. See "systemctl status nscd.service" and "journalctl -xe" for details.
# systemctl status nscd.service
● nscd.service - Name Service Cache Daemon
Loaded: loaded (/usr/lib/systemd/system/nscd.service; enabled; vendor preset: disabled)
Active: activating (start) since Thu 2022-03-17 13:33:13 GMT; 16s ago
Process: 25967 ExecStart=/usr/sbin/nscd $NSCD_OPTIONS (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nscd.service
└─25977 /usr/sbin/nscd
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring file `/etc/hosts` (4)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring directory `/etc` (2)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring file `/etc/resolv.conf` (5)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring directory `/etc` (2)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring file `/etc/services` (6)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 monitoring directory `/etc` (2)
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 disabled inotify-based monitoring for file `/etc/netgroup': No such file or directory
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 stat failed for file `/etc/netgroup'; will try again later: No such file or directory
Mar 17 13:33:13 host.db.com nscd[25977]: 25977 Access Vector Cache (AVC) started
Mar 17 13:33:13 host.db.com systemd[1]: Can't open PID file /run/nscd/nscd.pid (yet?) after start: No such file or directory
Environment
- Red Hat Enterprise Linux (RHEL)
- nscd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.