containers / containers/bubblewrap

enhancement: --daemonize-with-child option

Open
#614 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.