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 request ] Exit if all processes stop #128

Open
yonas opened this issue Apr 25, 2024 · 1 comment
Open

[ feature request ] Exit if all processes stop #128

yonas opened this issue Apr 25, 2024 · 1 comment

Comments

@yonas
Copy link

yonas commented Apr 25, 2024

It would be nice if, by additional CLI flag, mprocs could automatically quit when all process have stopped, so long as all processes exit with status code zero.

An additional flag would enable mprocs to automatically quit even if one or more processes exited with non-zero.

@yonas
Copy link
Author

yonas commented Apr 25, 2024

The two flags can be combined into one. For eg.

--exit-after-stop
--exit-after-stop-when=success      Exit when all processes have successfully stopped with exit code zero. This is the default.
--exit-after-stop-when=failure      Exit when all processes have stopped, regardless of exit status.

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

No branches or pull requests

1 participant