summaryrefslogtreecommitdiffstats
path: root/build_tools/larch8
diff options
context:
space:
mode:
authorJames Meyer <jams@linhes.org>2010-12-22 20:00:00 (GMT)
committerJames Meyer <jams@linhes.org>2010-12-22 20:00:00 (GMT)
commit5e928df58c2dec06ec0103b2197d5af4cb97dd77 (patch)
treeef27e45376ac686df092b9ba3f5e8c65622d0f28 /build_tools/larch8
parent519d3e8db20026af8395a100eea64720a4f012f4 (diff)
downloadlinhes_dev-5e928df58c2dec06ec0103b2197d5af4cb97dd77.zip
rc.local change for starting mysql, minor rearrangment of the status check
Diffstat (limited to 'build_tools/larch8')
-rwxr-xr-xbuild_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local9
1 files 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"