run (442B)
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/svscan-ccx-log } 7 redirfd -w 1 /run/cgroup2/s6-rc/svscan-ccx-log/cgroup.procs 8 printf "%s" ${SERVICE_PID} 9 } 10 unexport SERVICE_PID 11 12 if { mkdir -p /run/user/ccx.logs } 13 if { chown ccx: /run/user/ccx.logs } 14 if { chmod 700 /run/user/ccx.logs } 15 s6-setuidgid ccx 16 s6-log -- t /run/user/ccx.logs