mrrl-system-config

system configuration on top of MRRL
git clone https://ccx.te2000.cz/git/mrrl-system-config
Log | Files | Refs

commit cfe1f44a53e2d35f964477c0232077c3ab8deed8
parent 40d7821bf6eb1a94451054af55c2f91cfaeba2a8
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Wed, 31 Dec 2025 02:19:26 +0000

Add timeout after which tty service (getty or shell) is killed

Diffstat:
Mconfig.aat | 2++
Ms6-rc.aat | 4++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/config.aat b/config.aat @@ -8,6 +8,8 @@ tty_max=4 # Number of gettys to spawn (should be less 9 to not overlap with rescue getty) getty_max=4 +# Shutdown timeout, in milliseconds +getty_down_timeout=60000 tty_setfont=ter-v16n.psf.gz diff --git a/s6-rc.aat b/s6-rc.aat @@ -81,6 +81,10 @@ |for(tty=1; tty<=(<getty_max>+0); tty++) { |start_longrun("tty" tty, "ok-sysinit") |in_bundle("gettys") +|if(get("getty_down_timeout")) { +|start_file("timeout-kill", "644") + {<getty_down_timeout>} +|} |run_el() {{qexec("foreground")}} { {{qexec("issue-gen")}} } {{qexec("env")}} LOGIN_TTY=/dev/tty{{tty}} {{qexec("getty")}} -l {{qexec("login-keepenv")}} 38400 tty{{tty}} linux