run (336B)
1 #!/command/execlineb -P 2 getpid SERVICE_PID 3 foreground { 4 importas -i SERVICE_PID SERVICE_PID 5 if { test -d /run/cgroup2 } 6 if { mkdir -p /run/cgroup2/s6-rc/tty1 } 7 redirfd -w 1 /run/cgroup2/s6-rc/tty1/cgroup.procs 8 printf "%s" ${SERVICE_PID} 9 } 10 unexport SERVICE_PID 11 12 env LOGIN_TTY=/dev/tty1 /sbin/getty -l login-keepenv 38400 tty1 linux