Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (13 sloc) 0.539 kb
f61a439 @tamirko Tamir added MySQL
tamirko authored
1 #!/bin/bash -x
2
3 # args:
4 # $1 the error code of the last command (should be explicitly passed)
5 # $2 the message to print in case of an error
6 #
7 # an error message is printed and the script exists with the provided error code
8 function error_exit {
9 echo "$2 : error code: $1"
10 exit ${1}
11 }
12
13 export PATH=$PATH:/usr/sbin:/sbin:/usr/bin || error_exit $? "Failed on: export PATH=$PATH:/usr/sbin:/sbin"
14
15 sudo service mysql start || error_exit $? "Failed on: sudo service mysql start"
16
17 ps -ef | grep -i mysql | grep -ivE "gigaspaces|GSC|GSA|grep"
18
Something went wrong with that request. Please try again.