diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-26 06:31:15 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-26 06:31:15 (GMT) |
commit | 426a866ca1a2e26518cc2d62ea9493c949ad7785 (patch) | |
tree | 2cb9d9eb4840c8f64d8dd13b66a624938f1dd222 /abs/core-testing/LinHES-system/bin/backupcommon | |
parent | 22717178ce9fdec1b5711bcaea5a39e2334d94b1 (diff) | |
parent | 0eab18a8c482a6e82b53022535e934c9e38e36a2 (diff) | |
download | linhes_pkgbuild-426a866ca1a2e26518cc2d62ea9493c949ad7785.zip linhes_pkgbuild-426a866ca1a2e26518cc2d62ea9493c949ad7785.tar.gz linhes_pkgbuild-426a866ca1a2e26518cc2d62ea9493c949ad7785.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/LinHES-system/bin/backupcommon')
-rw-r--r-- | abs/core-testing/LinHES-system/bin/backupcommon | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-system/bin/backupcommon b/abs/core-testing/LinHES-system/bin/backupcommon index 9b75db3..39a62e9 100644 --- a/abs/core-testing/LinHES-system/bin/backupcommon +++ b/abs/core-testing/LinHES-system/bin/backupcommon @@ -359,7 +359,15 @@ check_files_and_tables () { } stop_mysqld () { $SV stop mysql ; } -start_mysqld () { $SV start mysql ; } +start_mysqld () { + $SV start mysql + for t in 1 2 4 8 ; do + ready=$(mysql_cmd 'select 1 from dual' 2>/dev/null) + [ "$ready" = "1" ] && break + sleep "$t" + done + [ "$ready" != "1" ] && echo "Error, DB not available after 15 seconds!" +} stop_mythbackend () { $SV stop mythbackend ; } start_mythbackend () { $SV start mythbackend ; } |