aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-05-14 14:26:52 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-05-14 14:26:52 -0500
commita7fcc1e264b035177b4e524a40b27145baa86969 (patch)
tree53688c243f4f38837d28d2dec5c8dcb8b28a099f /sh
parentb79d058f162d8b49ccc968744e7cb1b7a7ba729c (diff)
S6: kick the scanner and sleep 1.5 seconds to avoid a race condition
Diffstat (limited to 'sh')
-rw-r--r--sh/s6.sh2
1 files changed, 2 insertions, 0 deletions
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}"