Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.53k stars 1.25k forks source link

Feature quest: a place to record all the FATAL processes #1588

Open qiulang opened 1 year ago

qiulang commented 1 year ago

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,

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.

copyandrun commented 1 year ago

Wow,i got the same issue. Sometimes my program not started in docker. And i think this feature is very important.