diff options
Diffstat (limited to 'abs/core-testing/LinHES-config-svn')
-rwxr-xr-x | abs/core-testing/LinHES-config-svn/install_db_chroot.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config-svn/install_db_chroot.sh b/abs/core-testing/LinHES-config-svn/install_db_chroot.sh index 6dcbfd5..808dbb9 100755 --- a/abs/core-testing/LinHES-config-svn/install_db_chroot.sh +++ b/abs/core-testing/LinHES-config-svn/install_db_chroot.sh @@ -6,7 +6,7 @@ myhost=$hostname hostname $myhost echo $myhost > /etc/hostname -echo "install_db_chroot hostname is $hostname" +echo "$0 hostname is $hostname" . $MV_ROOT/bin/install_functions.sh #myhost=`cat /etc/hostname` @@ -16,8 +16,9 @@ echo "install_db_chroot hostname is $hostname" # that the database can be initialized. /etc/rc.d/mysqld stop -/etc/rc.d/mysqld stop +killall -9 mysqld /etc/rc.d/mysqld start +sleep 1 # Put a limit on how many times we try to (re-)start MySQL success_test() { @@ -49,6 +50,7 @@ while true; do else echo "MySQL server is not running. Trying to start it." # Maybe it just needs to be started + sleep 1 /etc/rc.d/mysqld start mysqld_tries=$((mysqld_tries + 1)) success_test $mysqld_tries @@ -58,7 +60,9 @@ while true; do else echo "MySQL server may not be installed. Trying to install it." # Maybe it's not installed; try (re-)installing it and starting it + sleep 1 pacman --noconfirm -Sf mysql + sleep 1 /etc/rc.d/mysqld start mysqld_tries=$((mysqld_tries + 1)) success_test $mysqld_tries |