Add no-die-with-parent combinator
This commit is contained in:
parent
8f61c14085
commit
053e2c1364
9 changed files with 131 additions and 12 deletions
15
lib/combinators/no-die-with-parent.nix
Normal file
15
lib/combinators/no-die-with-parent.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
sig = "Permission";
|
||||
doc = ''
|
||||
Disables `--die-with-parent`
|
||||
|
||||
By default, jail-nix includes the `--die-with-parent` bwrap flag which
|
||||
kills all processes within this jail when the parent process dies. Use this
|
||||
combinator if you don't want this behavior.
|
||||
|
||||
This may be useful if the software you are jailing forks a daemon and then
|
||||
exits.
|
||||
'';
|
||||
impl = state: state // { dieWithParent = false; };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue