From cb085205ea9982a9857c0d06967314c29b17e811 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 19 Aug 2018 14:47:01 +0000 Subject: system/s6: allow openrc's sysinit to define early services --- system/s6/s6-svscanboot | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'system/s6/s6-svscanboot') 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.) -- cgit v1.2.3-70-g09d2