I have configured supervisor with php7.4-fpm and I got these logs , it always restart
2022-02-06T10:23:08.501156489Z 2022-02-06 10:23:08,500 INFO success: php7.4-fpm entered
RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-06T10:23:08.501390216Z 2022-02-06 10:23:08,501 INFO exited: php7.4-fpm (exit status 0;
expected)
2022-02-06T10:23:08.985646043Z 2022-02-06 10:23:08,985 INFO spawned: 'php7.4-fpm' with pid 545
2022-02-06T10:23:09.001912738Z 2022-02-06 10:23:09,001 INFO success: php7.4-fpm entered
RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-02-06T10:23:09.002241911Z 2022-02-06 10:23:09,002 INFO exited: php7.4-fpm (exit status 0;
expected)
this is my supervisor configuration
[supervisord]
nodaemon = true
logfile = /dev/null
logfile_maxbytes = 0
pidfile = /var/run/supervisord.pid
user=root
[program:php7.4-fpm]
command = /etc/init.d/php7.4-fpm start
stdout_logfile = /dev/stdout
stdout_logfile_maxbytes=0
startsecs = 0
exitcodes= 0
autorestart = true
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes=0
user = root
autostart = true
priority = 5