1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/fa3c59a4a56c/ changeset: fa3c59a4a56c user: natefoo date: 2012-04-16 22:26:10 summary: Allow for starting/stopping multiple servers directly in run.sh. affected #: 1 file diff -r 39200ca2e42dbc4ff264f9c9708795084fbb5092 -r fa3c59a4a56cb7965c05d073dc37e3a2504a9c54 run.sh --- a/run.sh +++ b/run.sh @@ -52,4 +52,17 @@ fi fi -python ./scripts/paster.py serve universe_wsgi.ini $@ +if [ -n "$GALAXY_RUN_ALL" ]; then + servers=`sed -n 's/^\[server:\(.*\)\]/\1/ p' universe_wsgi.ini | xargs echo` + daemon=`echo "$@" | grep -q daemon` + if [ $? -ne 0 ]; then + echo 'ERROR: $GALAXY_RUN_ALL cannot be used without the `--daemon` or `--stop-daemon` arguments to run.sh' + exit 1 + fi + for server in $servers; do + echo "Handling $server with log file $server.log..." + python ./scripts/paster.py serve universe_wsgi.ini --server-name=$server --pid-file=$server.pid --log-file=$server.log $@ + done +else + python ./scripts/paster.py serve universe_wsgi.ini $@ +fi Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.