'How to use nscd with supervisord?

nscd is unable to start while being added in the supervisord.conf. As seen below the service is getting exited.

nscd-stderr---supervisor-7YVxPY.log  sshd-stderr---supervisor-JPwc3a.log  sssd-stderr---supervisor-cCXU3U.log  supervisord.log
nscd-stdout---supervisor-Pd9ofa.log  sshd-stdout---supervisor-cXV6eZ.log  sssd-stdout---supervisor-lk9m1q.log
root@tex1-585f479757-c2rlc:/var/log/supervisor# more supervisord.log 
2022-02-04 04:54:02,276 CRIT Supervisor running as root (no user in config file)
2022-02-04 04:54:02,277 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2022-02-04 04:54:02,291 INFO RPC interface 'supervisor' initialized
2022-02-04 04:54:02,291 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-02-04 04:54:02,292 INFO supervisord started with pid 1
2022-02-04 04:54:03,305 INFO spawned: 'nscd' with pid 9
2022-02-04 04:54:03,308 INFO spawned: 'sshd' with pid 10
2022-02-04 04:54:03,311 INFO spawned: 'sssd' with pid 11
2022-02-04 04:54:03,312 INFO exited: nscd (exit status 64; not expected)
2022-02-04 04:54:04,357 INFO spawned: 'nscd' with pid 13
2022-02-04 04:54:04,357 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-02-04 04:54:04,357 INFO success: sssd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-02-04 04:54:04,363 INFO exited: nscd (exit status 64; not expected)
2022-02-04 04:54:06,366 INFO spawned: 'nscd' with pid 16
2022-02-04 04:54:06,372 INFO exited: nscd (exit status 64; not expected)
2022-02-04 04:54:09,378 INFO spawned: 'nscd' with pid 17
2022-02-04 04:54:09,383 INFO exited: nscd (exit status 64; not expected)

supervisor.conf

[supervisord]
nodaemon=true

[program:sshd]
command=/usr/sbin/sshd -D

[program:sssd]
command=/usr/sbin/sssd -i -f

[program:nscd]
command=/usr/sbin/nscd -F
autostart=true
autorestart=true

Any pointers in fixing this issue would appreicate.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source