3
PIDFILE="/tmp/PORT/data/mysql_sandboxPORT.pid"
4
BASEDIR="PERCONA_TOOLKIT_SANDBOX"
7
local pid=`cat /tmp/PORT/data/mysql_sandboxPORT.pid 2>/dev/null`
14
$BASEDIR/bin/mysqladmin --defaults-file="/tmp/PORT/my.sandbox.cnf" ping >/dev/null 2>&1
17
if [ $ps_alive -eq 0 ] && [ $mysql_alive -eq 0 ]; then
18
return 1 # sandbox is alive
26
echo -n "Stopping Maatkit sandbox PORT... "
30
$BASEDIR/bin/mysqladmin --defaults-file=/tmp/PORT/my.sandbox.cnf shutdown
34
if [ $exit_status -eq 0 ]; then