Skip to content

Instantly share code, notes, and snippets.

@sgoggins
Created July 2, 2021 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgoggins/49505cf313fb0bbee3c3697166a136fe to your computer and use it in GitHub Desktop.
Save sgoggins/49505cf313fb0bbee3c3697166a136fe to your computer and use it in GitHub Desktop.
Augur server stop example for several instances.
#!/bin/bash
cd augur-spos/
source ../virtualenv/augur-spos/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "spos is dead"
cd augur-zephyr/
source ../virtualenv/augur-zephyr/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "zephyr is dead"
cd augur-unicef/
source ../virtualenv/augur-unicef/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "unicef is dead"
cd augur-census/
source ../virtualenv/augur-census/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "census is dead"
cd augur-chaoss-reports/
source ../virtualenv/augur-chaoss-reports/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "community reports is dead"
cd augur-howison/
source ../virtualenv/augur-howison/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "howison is dead"
cd augur-indeed/
source ../virtualenv/augur-indeed/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "indeed is dead"
cd augur-jenkins/
source ../virtualenv/augur-jenkins/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "jenkins is dead"
cd augur-osshealth/
source ../virtualenv/augur-osshealth/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "augur-osshealth is dead"
#cd augur-qt/
#source ../virtualenv/augur-qt/bin/activate
#git stash
#git pull
#augur backend stop
#sleep 10
#augur backend kill
#deactivate
#cd ../
#echo "qt is dead"
cd augur-science/
source ../virtualenv/augur-science/bin/activate
git stash
git pull
augur backend stop
sleep 10
augur backend kill
deactivate
cd ../
echo "science is dead"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment