public
Created

  • Download Gist
screenrc-socorro
1 2 3 4 5 6 7 8 9 10 11 12 13
shell -${SHELL}
caption always "%n(%t) : %C"
defscrollback 1024
startup_message off
hardstatus on
hardstatus alwayslastline
 
screen -t collector 1 ~/bin/startup-socorro 1
screen -t processor 2 ~/bin/startup-socorro 2
screen -t monitor 3 ~/bin/startup-socorro 3
screen -t middleware 4 ~/bin/startup-socorro 4
screen -t crashmover 5 ~/bin/startup-socorro 5
screen -t send-crashes 6 ~/bin/startup-socorro 6
startup-socorro
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#!/bin/bash
 
SOCORROPATH=~/repos/socorro
 
if [ "$1" = 1 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
PYTHONPATH=. python socorro/collector/collector_app.py --admin.conf=./config/collector.ini
elif [ "$1" = 2 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
PYTHONPATH=. python socorro/processor/processor_app.py --admin.conf=./config/processor2.ini
elif [ "$1" = 3 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
PYTHONPATH=. python socorro/monitor/monitor_app.py --admin.conf=./config/monitor2.ini
elif [ "$1" = 4 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
PYTHONPATH=. python socorro/middleware/middleware_app.py --admin.conf=config/middleware.ini
elif [ "$1" = 5 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
PYTHONPATH=. python scripts/newCrashMover.py
elif [ "$1" = 6 ] ; then
. $SOCORROPATH/socorro-virtualenv/bin/activate
cd $SOCORROPATH
sleep 2
PYTHONPATH=. python socorro/collector/submitter_app.py -u http://localhost:8882/submit -s testcrash/ -n 10
fi

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.