Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2.5.0_ga_build…
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.539 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/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"
Something went wrong with that request. Please try again.