]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
make c9-build script start mysql if not running
authorDylan William Hardison <dylan@hardison.net>
Mon, 27 Feb 2017 18:42:37 +0000 (18:42 +0000)
committerDylan William Hardison <dylan@hardison.net>
Tue, 28 Feb 2017 23:27:22 +0000 (18:27 -0500)
scripts/c9-build

index 2944beb0a4eda05c972f3a3732f4d7c2ae8b1ed8..58dcaae4a229d30bea84cd396dff448606a5653a 100755 (executable)
@@ -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