# Author: Martti Vasar
# Date: 08/03/2012
#
# These commands are triggered, when configuring WORKER servers. If you want to add commands,
# just write them here, if you want to remove, you can delete the line or use # comment mark,
# the program will ignore comment lines
#
# There are two command types, one is running the command in the instance (R), the other is 
# copying files from local (from this) machine to remote machine (C). For running commands, use
# R as an indicator and for copying, use C as an indicatior. If using C, make sure you do 
# not use spaces in file names, first is where the file is located in the local file system
# and the second is where to copy the file in the remote system.
#
# It uses Secure Shell tools (scp and ssh)
# The PWD (current directory) is the directory, where the CloudController is started.
# Configuration files are located in configuration/.
#
# Description: 
# This will copy benchmark tool to the server and unpacks it. The destination is /mnt/ folder as
# this has more room to play around. 

# copy benchmark tool (use copy command)
C configuration/tools/worker.tar.gz /mnt/worker.tar.gz

# unpack the copied file in /mnt/ (use run command)
R cd /mnt/ && tar -xzvf worker.tar.gz

# close MYSQL (run the command)
R sudo service mysql stop

# feel free to remove or add new commands

