diff options
author | James Meyer <james.meyer@operamail.com> | 2012-10-29 22:56:39 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-10-29 22:56:39 (GMT) |
commit | f974db507d6236cb82d3daf31073fcfe82bcf2ed (patch) | |
tree | 203c053dc7c885b99855143d56348ace68a181d2 /abs/core/runit-scripts/runitscripts/services/mythbackend/run | |
parent | 5027ed542f9e59dad7d03bae8832527c9b01e9cb (diff) | |
download | linhes_pkgbuild-f974db507d6236cb82d3daf31073fcfe82bcf2ed.zip linhes_pkgbuild-f974db507d6236cb82d3daf31073fcfe82bcf2ed.tar.gz linhes_pkgbuild-f974db507d6236cb82d3daf31073fcfe82bcf2ed.tar.bz2 |
runit-scripts: make mythbackend wait on mysql. mysql must be up for at least 5 seconds.
mysql add a bash signal trap so that mysql will shut down correctly. Without this mysql ignores the term signal which makes it unique in the unix world.
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/mythbackend/run')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythbackend/run | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run index 26dca04..937b267 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -4,6 +4,9 @@ exec 2>&1 export TERM=linux . /etc/rc.conf . /etc/rc.d/functions +#wait for mysql +/sbin/svwaitup -s 5 /service/mysql + #profile is here to setup LC_ALL/locale MYTH_RUN_STATUS="1" . /etc/profile |