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














                                                  
#!/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 -St0 -d3 /run/service