From d79aff186f7309df1c1f6c0dc8a58fe79c49cab9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 4 Oct 2024 12:08:24 +0000 Subject: Document flag-newpidns Signed-off-by: Laurent Bercot --- doc/servicedir.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc/servicedir.html') diff --git a/doc/servicedir.html b/doc/servicedir.html index f08c3a4..5e93ac0 100644 --- a/doc/servicedir.html +++ b/doc/servicedir.html @@ -208,6 +208,19 @@ newline. This signal will be used to kill the supervised process when a s6-svc -d or s6-svc -r command is used. If the file does not exist, SIGTERM will be used by default. +
  • An optional regular file named flag-newpidns. +If such a file exists: +
      +
    • On Linux (and potentially in the future, other systems that implement such +functionality): at service starting time, the ./run script will be spawned +in a new PID namespace. It will be pid 1 in that namespace.
    • +
    • On systems that do not support the functionality: the service will fail to +start, so do not create this file if you're unsure. (Yes, it is a better behaviour +than ignoring the flag. Having the flag be silently ignored on some systems would +be very bad.)
    • +
    +
  • +
  • A fifodir named event. It is automatically created by s6-supervise if it does not exist. foo/event -- cgit v1.2.3