Created
September 4, 2014 16:03
-
-
Save lenciel/e308f62c57492de6567f to your computer and use it in GitHub Desktop.
supervisor configuration file for sentry
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
;Notes: | |
; - Shell expansion ("~" or "$HOME") is not supported. Environment | |
; variables can be expanded using this syntax: "%(ENV_HOME)s". | |
; - Comments must have a leading space: "a=b ;comment" not "a=b;comment". | |
; | |
; Put this file in /etc/supervisord.conf | |
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
[supervisord] | |
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) | |
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | |
loglevel=info ; (log level;default info; others: debug,warn,trace) | |
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | |
nodaemon=false ; (start in foreground if true;default false) | |
minfds=1024 ; (min. avail startup file descriptors;default 1024) | |
minprocs=200 ; (min. avail process descriptors;default 200) | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket | |
[program:sentry-web] | |
directory=/data/.virtualenvs/sentry | |
command=/data/.virtualenvs/sentry/bin/sentry --config=/etc/sentry.conf.py start | |
autostart=true | |
autorestart=true | |
redirect_stderr=true | |
[program:sentry-worker] | |
directory=/data/.virtualenvs/sentry | |
command=/data/.virtualenvs/sentry/bin/sentry --config=/etc/sentry.conf.py celery worker -B | |
autostart=true | |
autorestart=true | |
redirect_stderr=true | |
killasgroup=true |
Example config is now in the Sentry docs: https://docs.sentry.io/server/installation/python/#configure-supervisord
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Old config, doesn't work