summaryrefslogtreecommitdiff
path: root/s6/db/basic/servicedirs/s6rc-fdholder/run
blob: 0a400c79b6fa768cd3363d188fde019092cfa968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/execlineb -P
pipeline -dw --
{
  if -n --
  {
    forstdin -x 1 -- i
    exit 1
  }
  if -nt --
  {
    redirfd -r 0 ./data/autofilled
    s6-ipcclient -l0 -- s
    /lib/s6-rc/s6-rc-fdholder-filler -1 --
  }
  s6-svc -t .
}
s6-fdholder-daemon -1 -i data/rules -- s