]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: document that systemd closes console during normal runtime
authorArvid E. Picciani <aep@exys.org>
Wed, 1 Dec 2021 08:21:04 +0000 (09:21 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Dec 2021 09:16:15 +0000 (10:16 +0100)
fixes #21451

Signed-off-by: Arvid E. Picciani <aep@exys.org>
docs/CONTAINER_INTERFACE.md

index 9ca991cab50cd2ce58eedd85c1a04a97777c6dde..9ce4f6458709121a8466a89f20349e9b0d89477a 100644 (file)
@@ -37,7 +37,10 @@ manager, please consider supporting the following interfaces.
    in this context.)
 
 3. Pre-mount `/dev/` as (container private) `tmpfs` for the container and bind
-   mount some suitable TTY to `/dev/console`. Also, make sure to create device
+   mount some suitable TTY to `/dev/console`. If this is a pty, make sure to not
+   close the controling pty master during systemd's lifetime. PID1 will close ttys,
+   to avoid being killed by SAK. It only opens ttys for the time it
+   actually needs to print something. Also, make sure to create device
    nodes for `/dev/null`, `/dev/zero`, `/dev/full`, `/dev/random`,
    `/dev/urandom`, `/dev/tty`, `/dev/ptmx` in `/dev/`. It is not necessary to
    create `/dev/fd` or `/dev/stdout`, as systemd will do that on its own. Make