aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/rc.init
blob: 004ea9015eb14005f5b0189ef7ae88ae8b7af606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/command/execlineb -P

# Make sure the /dev/urandom entropy pool will be set in
# a not-too-distant future. Ideally we'd block on this,
# but it's not critical, so we don't.

background -d { s6-fillurandompool }


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

if { s6-clock %%BUILDTIME%% }


# 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 %%RCTIMEOUT%% -- change ok-all }
s6-rc -t %%RCTIMEOUT%% -- change ok-all