java -jar atlassian-bamboo-agent-installer-6.10.2.jar https://bamboo.zooxlabs.com/agentServer/ stop 2> log.txt
if [ "$?" == "0" ]; then
    echo "Stopped Bamboo Agent"
else
    echo "Error stopping Bamboo Agent. See log.txt for details"
fi
