summaryrefslogblamecommitdiff
path: root/system/sysvinit/s6-svscanboot
blob: adfdc804457c47efd83f2edba358f97387249523 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                  
                          
#!/bin/execlineb -P

define RUNIMG /etc/s6-linux-init/current/run-image
export PATH /usr/bin:/usr/sbin:/bin:/sbin
umask 022
redirfd -r 0 /dev/null
if
{
  elglob -0 files ${RUNIMG}/*
  cp -a $files /run/
}
redirfd -w 3 /run/s6_ready
redirfd -wnb 1 /run/service/s6-svscan-log/fifo
fdmove -c 2 1
s6-svscan -d3 /run/service