From 5e928df58c2dec06ec0103b2197d5af4cb97dd77 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Wed, 22 Dec 2010 20:00:00 +0000 Subject: rc.local change for starting mysql, minor rearrangment of the status check --- .../linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local index 2d488a2..2379f2f 100755 --- a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local +++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local @@ -33,9 +33,6 @@ mythconverg_check status=$? while [ ! $status = 0 ] do - ((ATTEMPT=ATTEMPT+1)) - /etc/rc.d/mysqld stop - sleep 2 /etc/rc.d/mysqld start mysqlstatus=$? if [ $mysqlstatus = 0 ] @@ -43,7 +40,11 @@ do mysql_check && install_db mythconverg_check status=$? - fi + else + ((ATTEMPT=ATTEMPT+1)) + /etc/rc.d/mysqld stop + sleep 2 + fi if [ $ATTEMPT = 20 ] then printhl " Could not start mysql or install mythconverg within 20 attempts" -- cgit v0.12