commit:     a7fcc1e264b035177b4e524a40b27145baa86969
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Thu May 14 19:26:52 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu May 14 19:26:52 2015 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=a7fcc1e2

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 99aba3f..a45456a 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}"

Reply via email to