summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-26 06:31:15 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-26 06:31:15 (GMT)
commit426a866ca1a2e26518cc2d62ea9493c949ad7785 (patch)
tree2cb9d9eb4840c8f64d8dd13b66a624938f1dd222 /abs/core-testing/LinHES-system
parent22717178ce9fdec1b5711bcaea5a39e2334d94b1 (diff)
parent0eab18a8c482a6e82b53022535e934c9e38e36a2 (diff)
downloadlinhes_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')
-rw-r--r--abs/core-testing/LinHES-system/bin/backupcommon10
-rwxr-xr-xabs/core-testing/LinHES-system/bin/mythbackup2
2 files changed, 10 insertions, 2 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 ; }
diff --git a/abs/core-testing/LinHES-system/bin/mythbackup b/abs/core-testing/LinHES-system/bin/mythbackup
index d3cc4e8..d0d028d 100755
--- a/abs/core-testing/LinHES-system/bin/mythbackup
+++ b/abs/core-testing/LinHES-system/bin/mythbackup
@@ -32,7 +32,7 @@ $MYISAMCHK -f *.MYI
start_mysqld
# Dumps the $DATABASE database
-$MYSQLDUMP -c -u root $DATABASE > $BACKUP_SQL
+$MYSQLDUMP -v -c -u root $DATABASE > $BACKUP_SQL
shrink $BACKUP_SQL
# Now to backup the other files, no fooling around, grab everything in the