~dveeden/mysql-sandbox/mysql-sandbox

« back to all changes in this revision

Viewing changes to script_templates/samples/stop

  • Committer: Giuseppe Maxia
  • Date: 2009-05-09 08:04:44 UTC
  • Revision ID: g.maxia@gmail.com-20090509080444-jy8a330el0mt425a
Tags: 3.0
- 3.0.00 GA release
- no code modification. Same codebase as 2.0.99f
- completed cookbook (41 recipes in MySQL::Sandbox::Recipes)
- added script_templates directory (No modification in current version, just preparation for 3.1.xx)
- added drafts directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/Users/gmax/usr/local/bin/bash
 
2
 
 
3
#-----------------------------------------
 
4
SBDIR="/Users/gmax/sandboxes/msb_5_1_34"
 
5
. "$SBDIR/sandbox_env"
 
6
#-----------------------------------------
 
7
 
 
8
if [ -f $PIDFILE ]
 
9
then
 
10
    if [ -f $SBDIR/data/master.info ]
 
11
    then
 
12
        echo "stop slave" | $SBDIR/use -u root
 
13
    fi
 
14
    $MYSQL_ADMIN --defaults-file=$SBDIR/my.sandbox.cnf shutdown
 
15
    sleep 1
 
16
fi
 
17
if [ -f $PIDFILE ]
 
18
then
 
19
    $SBDIR/send_kill
 
20
fi