From a7fcc1e264b035177b4e524a40b27145baa86969 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 14 May 2015 14:26:52 -0500 Subject: S6: kick the scanner and sleep 1.5 seconds to avoid a race condition --- sh/s6.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh/s6.sh b/sh/s6.sh index 99aba3fd..a45456a3 100644 --- a/sh/s6.sh +++ b/sh/s6.sh @@ -13,6 +13,8 @@ s6_start() s6_service_link="${RC_SVCDIR}/s6-scan/${s6_service_path##*/}" ebegin "Starting ${name:-$RC_SVCNAME}" ln -sf "${s6_service_path}" "${s6_service_link}" + s6-svscanctl -na "${RC_SVCDIR}"/s6-scan + sleep 1.5 s6-svc -u "${s6_service_link}" if [ -n "$s6_svwait_options_start" ]; then s6-svwait ${s6_svwait_options_start} "${s6_service_link}" -- cgit v1.2.3