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

enhancement: --daemonize-with-child option #614

Open
jonleivent opened this issue Dec 21, 2023 · 0 comments
Open

enhancement: --daemonize-with-child option #614

jonleivent opened this issue Dec 21, 2023 · 0 comments

Comments

@jonleivent
Copy link

It would be nice if bwrap had a --daemonize-with-child option that daemonizes the outer bwrap when the first child process within bwrap daemonizes (exits but leaves other processes running). This would improve how well bwrap ... cmd... matches the behavior of cmd... with respect to its parent script. Obviously, --daemonize-with-child could not be paired with --as-pid-1.

Use case: I bwrap a server app that does some complex initialization, then daemonizes when it is ready to accept clients. This allows the parent script to delay client startup until the server is ready. Without --daeminize-with-child, I have to poll to determine when the server is ready, or use a wrapper script around the server that signals the parent script when the server daemonizes, or modify the server app to do some other kind of signalling.

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