summaryrefslogtreecommitdiff
path: root/examples/source/fifodir-cleanup/run
blob: a5108c52f092ffc66af1e036fcd248f71af130b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/command/execlineb -P
fdmove -c 2 1
if
{
  forbacktickx -ep -0 i { s6-ls -0 /service }
  importas -u i i
  foreground
  {
    if { eltest -d /service/${i}/log }
    s6-cleanfifodir /service/${i}/log/event
  }
  s6-cleanfifodir /service/${i}/event
}
s6-setuidgid nobody
s6-sleep 86400