diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-22 21:56:04 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-22 21:56:04 +0000 |
| commit | 82d0f92ab8b84466ae20ab919c1f9c3577b5cecb (patch) | |
| tree | 776015ae6c6a386125b2d39e13b62f91b99548f8 /layout/rootfs/etc/rc.init | |
| download | lh-bootstrap-82d0f92ab8b84466ae20ab919c1f9c3577b5cecb.tar.gz | |
Initial commit
Diffstat (limited to 'layout/rootfs/etc/rc.init')
| -rwxr-xr-x | layout/rootfs/etc/rc.init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layout/rootfs/etc/rc.init b/layout/rootfs/etc/rc.init new file mode 100755 index 0000000..004ea90 --- /dev/null +++ b/layout/rootfs/etc/rc.init @@ -0,0 +1,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 |
