Supervisord removing a process after successfully running
0
votes
2
answers
2964
views
I have the following configuration for a process to run continuously. Apparently, it works very fine but after few hours or sometimes few minutes, the process gets terminated.
Any kind of help is highly appreciated.
**Supervisord Config:**
[program:action_consumer]
process_name=%(program_name)s_%(process_num)02d
command = php /var/www/the_api/web/index.php actionCron
numprocs = 2
autostart=true
autorestart=true
user=console_api
redirect_stderr=true
stdout_logfile=/var/www/the_api/logs/action_consumer.log
RestartSec=3
Restart=3
WatchdogSec=3
**OS Info:**
Debian GNU/Linux 8 (jessie)
Log file:
The log file contains the following error:
FATAL state, too many start retries too quickly
**Important:**
It is obvious that the process terminates too quickly, it is my requirement. I don't want to run the script in an infinite loop. Is setting
startretries
a valid solution?
Asked by Jason Kruger
(1 rep)
Apr 3, 2018, 06:37 AM
Last activity: Apr 8, 2025, 12:03 PM
Last activity: Apr 8, 2025, 12:03 PM