root/galaxy-central/contrib/multiproccess.sh

リビジョン 2, 0.8 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1#!/bin/bash
2
3# copy this script to the top level galaxy directory and modify the following
4# for your environment
5
6web_server_names=(web{0..2}) # server names: web0 web1 web2
7runner_server_names=(runner0) # server name: runner0
8
9web_config='universe_wsgi.webapp.ini'
10runner_config='universe_wsgi.runner.ini'
11
12# actually do the requested action
13
14if [ -z "$1" ]; then
15    echo "usage: multiprocess.sh <--daemon|--stop-daemon>"
16    exit 1
17fi
18
19for server_name in ${web_server_names[@]}; do
20    echo "[$server_name]"
21    python ./scripts/paster.py serve $web_config --server-name=$server_name --pid-file=$server_name.pid --log-file=$server_name.log $@
22done
23for server_name in ${runner_server_names[@]}; do
24    echo "[$server_name]"
25    python ./scripts/paster.py serve $runner_config --server-name=$server_name --pid-file=$server_name.pid --log-file=$server_name.log $@
26done
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。