Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 2.6.1_ga_build…
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.539 kB
#!/bin/bash -x
# args:
# $1 the error code of the last command (should be explicitly passed)
# $2 the message to print in case of an error
#
# an error message is printed and the script exists with the provided error code
function error_exit {
echo "$2 : error code: $1"
exit ${1}
}
export PATH=$PATH:/usr/sbin:/sbin:/usr/bin || error_exit $? "Failed on: export PATH=$PATH:/usr/sbin:/sbin"
sudo service mysql start || error_exit $? "Failed on: sudo service mysql start"
ps -ef | grep -i mysql | grep -ivE "gigaspaces|GSC|GSA|grep"
Jump to Line
Something went wrong with that request. Please try again.