I have searched the document and the open issues but I can't find a way to record all the FATAL process. Now I write TWO cron job , first to check supervisorctl output periodically, something like this,
supervisorctl status | awk '{if ($2 =="FATAL") {split($1,a,":"); print a[1]}}'
// If the output is not empty I will record the process name into a file
The second cron job to check periodically if that particular file exists
I feel awkward for this home-made solution. So if does supervisor provide any builtin solution to record all the FATAL process?
The reason I need to this is there are critical processes in my php-worker docker I need to supervisor to start, if they are not started I will need to restart my docker.
Hi,
I have searched the document and the open issues but I can't find a way to record all the FATAL process. Now I write TWO cron job , first to check supervisorctl output periodically, something like this,
The second cron job to check periodically if that particular file exists
I feel awkward for this home-made solution. So if does supervisor provide any builtin solution to record all the FATAL process?
The reason I need to this is there are critical processes in my php-worker docker I need to supervisor to start, if they are not started I will need to restart my docker.