summaryrefslogtreecommitdiff
path: root/examples/rc.init
blob: afc77353dd1171f021e3312c0c32de3d810839fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/execlineb -P

# Set the system clock to something sensible,
# to get coherent logs until the initial NTP exchange

if { s6-clock @400000005a58000000000000 }


# Initialize the service manager

if { s6-rc-init /run/service }


# Run the service manager.
# Call it twice because the first time may spuriously "timeout"
# due to the clock jumping forward.

if -nt { s6-rc -t 600000 -- change ok-all }
s6-rc -t 600000 -- change ok-all