I have a script written in php that needs to reside in memory, so I use supervisor to manage it. Later, because the process runs for a long time, it will appear suspended animation, so I changed the process to exit when there is nothing to do, and then let supervisor Pull it up again to restart the process. I thought so and then I did it, but it was implemented yesterday, and today I found that the process still hung up, this time it was completely hung up, and it was not pulled up, and the following errors were found in the supervisor's log:
INFO gave up: php_user_profile_02 entered FATAL state, too many start retries too quickly
Since I designed it to exit directly without a task, and then be pulled up by the supervisor, if there is no task for a period of time, the process will exit immediately after being pulled up, and such frequent operations are limited in the supervisor Yes, what I found online is that it will try 3 times by default, and then it will not try to start the process again, and an error will be reported. This I did find this setting when looking at the config file:
;startretries=3 ; max # of serial start failures (default 3)
The default is to try 3 times.
refer to: