From a9855e8d9746a91793b46a1ef2cdba6a200132b4 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 27 Feb 2017 18:42:37 +0000 Subject: make c9-build script start mysql if not running --- scripts/c9-build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3-24-g4f1b