From: Dylan William Hardison Date: Mon, 27 Feb 2017 18:42:37 +0000 (+0000) Subject: make c9-build script start mysql if not running X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9855e8d9746a91793b46a1ef2cdba6a200132b4;p=thirdparty%2Fbugzilla.git make c9-build script start mysql if not running --- diff --git a/scripts/c9-build b/scripts/c9-build index 2944beb0a..58dcaae4a 100755 --- a/scripts/c9-build +++ b/scripts/c9-build @@ -1,6 +1,9 @@ #!/bin/bash cd ~/workspace +if ! ps aux | grep '[m]ysql' &>/dev/null; then + mysql-ctl restart +fi sudo apachectl stop perl scripts/clear-templates.pl perl checksetup.pl