diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-05-14 14:26:52 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-05-14 14:26:52 -0500 |
commit | a7fcc1e264b035177b4e524a40b27145baa86969 (patch) | |
tree | 53688c243f4f38837d28d2dec5c8dcb8b28a099f | |
parent | b79d058f162d8b49ccc968744e7cb1b7a7ba729c (diff) |
S6: kick the scanner and sleep 1.5 seconds to avoid a race condition
-rw-r--r-- | sh/s6.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}" |