source: npl/commonservers/mysql5/start

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 402 bytes
Line 
1#!/bin/bash
2TRY=50
3svc -u /service/mysql
4while ! mysqladmin status --password=`cat /etc/my.passwd` &>/dev/null; do
5    echo "Waiting for mysql to start.. ($TRY)"
6    sleep 1
7    (( TRY-- ))
8    if [ $TRY -eq 0 ]; then
9                syn3-state mysql CAUTION "Startup error"
10                svc -d /service/mysql
11                exit 1
12    fi
13done
14#race condition
15sleep 1
16syn3-state mysql OK "Started"
Note: See TracBrowser for help on using the repository browser.