Created
July 5, 2015 13:03
-
-
Save natefoo/f6f0a6a0e33c65232ff1 to your computer and use it in GitHub Desktop.
supervisor examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:galaxy_test_uwsgi] | |
command = /usr/bin/sg G-803372 '/srv/galaxy/test/venv/bin/uwsgi --ini /srv/galaxy/test/config/uwsgi.ini' | |
directory = /srv/galaxy/test/server | |
umask = 022 | |
autostart = true | |
autorestart = true | |
startsecs = 15 | |
user = g2test | |
environment = PYTHON_EGG_CACHE=/srv/galaxy/test/var/python-egg-cache-test_uwsgi,GALAXY_EGGS_PATH=/srv/galaxy/test/eggs | |
numprocs = 1 | |
stopsignal = INT | |
stdout_logfile = /var/log/supervisord/test_uwsgi.stdout.log | |
stderr_logfile = /var/log/supervisord/test_uwsgi.stderr.log | |
[program:test_handler] | |
command = /usr/bin/sg G-803372 '/srv/galaxy/test/venv/bin/python ./lib/galaxy/main.py -c /srv/galaxy/test/config/galaxy.ini --server-name=test_handler%(process_num)s' | |
directory = /galaxy-repl/instances/test/server | |
process_name = handler%(process_num)s | |
numprocs = 4 | |
umask = 022 | |
autostart = true | |
autorestart = true | |
startsecs = 30 | |
user = g2test | |
environment = PYTHON_EGG_CACHE=/srv/galaxy/test/var/python-egg-cache-test_handler%(process_num)s,GALAXY_EGGS_PATH=/galaxy-repl/instances/test/eggs | |
stdout_logfile = /srv/galaxy/test/log/test_handler%(process_num)s.log | |
stdout_logfile_maxbytes = 128MB | |
stdout_logfile_backups = 64 | |
redirect_stderr = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[group:galaxy_test] | |
programs = test_handler,test_reports,test_installer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:test_installer] | |
command = /usr/bin/sg G-803372 '/galaxy-repl/test/venv/bin/python ./scripts/paster.py serve /srv/galaxy/test/config/galaxy.ini --server-name=%(program_name)s --pid-file=/srv/galaxy/test/var/run/%(program_name)s.pid' | |
directory = /galaxy-repl/instances/test/server | |
process_name = installer | |
umask = 022 | |
autostart = true | |
autorestart = true | |
startsecs = 30 | |
user = g2test | |
environment = PYTHON_EGG_CACHE=/srv/galaxy/test/var/python-egg-cache-%(program_name)s,VIRTUAL_ENV=/galaxy-repl/test/venv,PATH=/galaxy-repl/test/venv/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin,GALAXY_EGGS_PATH=/galaxy-repl/instances/test/eggs | |
stdout_logfile = /srv/galaxy/test/log/%(program_name)s.log | |
stdout_logfile_maxbytes = 128MB | |
stdout_logfile_backups = 64 | |
redirect_stderr = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unix_http_server] | |
file = /var/run/supervisor.sock | |
[inet_http_server] | |
port = 0.0.0.0:18001 | |
username = root | |
password = {SHA}deadbeefdeadbeefdeadbeef | |
[supervisord] | |
logfile = /var/log/supervisord.log | |
logfile_maxbytes = 50MB | |
logfile_backups = 10 | |
loglevel = info | |
pidfile = /var/run/supervisord.pid | |
nodaemon = false | |
minfds = 1024 | |
minprocs = 200 | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl = unix:///var/run/supervisor.sock | |
[include] | |
files = /etc/opt/supervisor/*.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment