Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qiulang opened this issue Apr 13, 2023 · 1 comment
Open

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

qiulang opened this issue Apr 13, 2023 · 1 comment

Comments

@qiulang
Copy link

qiulang commented Apr 13, 2023

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.

@qiulang qiulang changed the title Feature quest: a place to record all the FATAL prcoess Feature quest: a place to record all the FATAL processes Apr 13, 2023
@copyandrun
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants