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.
[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
Debian GNU/Linux 8 (jessie)
Log file: The log file contains the following error:
FATAL state, too many start retries too quickly
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?