~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/rabbitmq/admin.sh

updating to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
export RABBITMQ_NODENAME="drizzle_test"
35
35
export RABBITMQ_NODE_IP_ADDRESS="0.0.0.0"
36
36
 
 
37
DIR=$RABBITMQ_NODENAME
 
38
rm -rf $DIR
 
39
mkdir -p $DIR/logs
 
40
mkdir $DIR/mnesia
 
41
 
 
42
export RABBITMQ_MNESIA_BASE="`pwd`/$DIR/mnesia"
 
43
export RABBITMQ_LOG_BASE="`pwd`/$DIR/logs"
 
44
 
 
45
 
37
46
startup()
38
47
{
39
 
  /usr/sbin/rabbitmq-server -detached
 
48
   /usr/lib/rabbitmq/bin/rabbitmq-server -detached
 
49
   sleep 5
40
50
}
41
51
 
42
52
shutdown()
43
53
{
44
 
  /usr/sbin/rabbitmqctl stop
 
54
  /usr/lib/rabbitmq/bin/rabbitmqctl -q -n $RABBITMQ_NODENAME stop
 
55
  sleep 5
 
56
  rm -rf $DIR
45
57
}
46
58
 
47
59
restart()