summaryrefslogtreecommitdiffstats
path: root/abs/core-testing
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing')
-rw-r--r--abs/core-testing/LinHES-system/bin/backupcommon10
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 ; }