S6: kick the scanner and sleep 1.5 seconds to avoid a race condition
This commit is contained in:
parent
b79d058f16
commit
a7fcc1e264
2
sh/s6.sh
2
sh/s6.sh
@ -13,6 +13,8 @@ s6_start()
|
|||||||
s6_service_link="${RC_SVCDIR}/s6-scan/${s6_service_path##*/}"
|
s6_service_link="${RC_SVCDIR}/s6-scan/${s6_service_path##*/}"
|
||||||
ebegin "Starting ${name:-$RC_SVCNAME}"
|
ebegin "Starting ${name:-$RC_SVCNAME}"
|
||||||
ln -sf "${s6_service_path}" "${s6_service_link}"
|
ln -sf "${s6_service_path}" "${s6_service_link}"
|
||||||
|
s6-svscanctl -na "${RC_SVCDIR}"/s6-scan
|
||||||
|
sleep 1.5
|
||||||
s6-svc -u "${s6_service_link}"
|
s6-svc -u "${s6_service_link}"
|
||||||
if [ -n "$s6_svwait_options_start" ]; then
|
if [ -n "$s6_svwait_options_start" ]; then
|
||||||
s6-svwait ${s6_svwait_options_start} "${s6_service_link}"
|
s6-svwait ${s6_svwait_options_start} "${s6_service_link}"
|
||||||
|
Loading…
Reference in New Issue
Block a user