diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2018-08-19 14:47:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-adelie@skarnet.org> | 2018-08-19 20:11:37 +0000 |
commit | cb085205ea9982a9857c0d06967314c29b17e811 (patch) | |
tree | 728d8a6293fafe8f35bd03d0539d3e7a8faac156 /system/s6/s6-svscanboot | |
parent | de8784d523b8002d3bbbc9527e1024736de680c3 (diff) | |
download | packages-cb085205ea9982a9857c0d06967314c29b17e811.tar.gz packages-cb085205ea9982a9857c0d06967314c29b17e811.tar.bz2 packages-cb085205ea9982a9857c0d06967314c29b17e811.tar.xz packages-cb085205ea9982a9857c0d06967314c29b17e811.zip |
system/s6: allow openrc's sysinit to define early services
Diffstat (limited to 'system/s6/s6-svscanboot')
-rw-r--r-- | system/s6/s6-svscanboot | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/s6/s6-svscanboot b/system/s6/s6-svscanboot index 447a1a01b..8fa8ec5d5 100644 --- a/system/s6/s6-svscanboot +++ b/system/s6/s6-svscanboot @@ -40,6 +40,17 @@ if } +# Also link the early services defined in sysinit, if any + +if +{ + if -t { test -d /run/early-services } + forbacktickx -pnd"\n" i { ls -1 -U /run/early-services } + importas -u i i + ln -nsf ../early-services/$i /run/service/$i +} + + # Create the catch-all logger servicedir directly in the scandir # (It's too fundamental to be made configurable as an early service.) |