summaryrefslogtreecommitdiff
path: root/examples/ROOT/img/services-network/ntpclient/run
blob: 7ade06495f7af30b90303503630d0c38ea15f438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/command/execlineb -P

fdmove -c 2 1
if
{
  pipeline
  {
    s6-setuidgid ntp
    backtick -n NTPSERVERIP
    {
      pipeline { s6-dnsip4 -t 16000 0.fr.pool.ntp.org. }
      s6-head -n 1
    }
    s6-sntpclock -v $NTPSERVERIP
  }
  s6-clockadd
}
s6-setuidgid nobody
s6-sleep 14400