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/tty2 } 7 redirfd -w 1 /run/cgroup2/s6-rc/tty2/cgroup.procs 8 printf "%s" ${SERVICE_PID} 9 } 10 unexport SERVICE_PID 11 12 env LOGIN_TTY=/dev/tty2 /sbin/getty -l login-keepenv 38400 tty2 linux