s6: use exec in the run trampoline, to forward file descriptors and keep a cleaner process tree

This commit is contained in:
2024-03-19 04:35:58 +00:00
parent e1001f57c5
commit cbecdc4a95

View File

@@ -9,10 +9,10 @@ let
name = "s6-${name}-run";
destination = "/${normalizeName name}/run";
executable = true;
# text = run;
# TODO: consider using `makeWrapper`/`makeWrapperBin`?
text = ''
#!/bin/sh
${run}
exec ${run}
'';
})
]