diff options
author | James Meyer <james.meyer@operamail.com> | 2012-11-07 21:06:37 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-11-07 21:06:37 (GMT) |
commit | 9d99e4612f58669a4b26e10b8a32d27b28eef210 (patch) | |
tree | a0ed5b371727c7e4497aeb1926e17ac7c81caca9 /abs/core/runit-scripts/runitscripts | |
parent | ffedb07e5b2e772ff86d9101b128942bbfb5452a (diff) | |
download | linhes_pkgbuild-9d99e4612f58669a4b26e10b8a32d27b28eef210.zip linhes_pkgbuild-9d99e4612f58669a4b26e10b8a32d27b28eef210.tar.gz linhes_pkgbuild-9d99e4612f58669a4b26e10b8a32d27b28eef210.tar.bz2 |
runit-scripts: if /service/mysql is present make the frontend wait on it for 2 seconds. This ensures that the database will be ready by the time the FE starts. This only affects Master backends that run the FE
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/frontend/run | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/frontend/run b/abs/core/runit-scripts/runitscripts/services/frontend/run index c1e2f2d..7fb1795 100755 --- a/abs/core/runit-scripts/runitscripts/services/frontend/run +++ b/abs/core/runit-scripts/runitscripts/services/frontend/run @@ -15,6 +15,10 @@ touch /var/log/fluxbox.log chown mythtv:mythtv /var/log/fluxbox.log stat_runit "Starting LinHES frontend" +if [ -e /service/mysql ] +then + svwaitup -s 2 /service/mysql +fi #echo "Starting LinHES frontend" >/dev/tty1 exec /bin/su - mythtv -l -c /usr/LH/bin/LinHES-start |