A little script to cover both cases [server running/server not running]:
#!/bin/bashservice mysql restartif [ "$?" != "0" ]; then service mysql startfi
A little script to cover both cases [server running/server not running]:
#!/bin/bashservice mysql restartif [ "$?" != "0" ]; then service mysql startfi