-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsupervisord.conf
More file actions
63 lines (49 loc) · 1.73 KB
/
supervisord.conf
File metadata and controls
63 lines (49 loc) · 1.73 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
;;
;; Example stackd.io configuration for supervisord
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; supervisord settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; For more information on the config file, please see:
; http://supervisord.org/configuration.html
; we want to run via a socket file (vs an open http server)
[unix_http_server]
file=/tmp/supervisor.sock
username=root
password=1234
[supervisord]
logfile=/var/log/stackdio/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/stackdio/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/stackdio
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
username=root
password=1234
history_file=~/.sc_history
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; app specific settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; django webserver
[program:gunicorn]
command=gunicorn stackdio.server.wsgi -b 127.0.0.1:8000 -w 4
autorestart=true
;;
;; celery
[program:celery-main]
command=stackdio celery worker -l info -c 4 -O fair -Q default,stacks,environments -n main.%%h
environment=PYTHONOPTIMIZE="1"
autorestart=true
[program:celery-short]
command=stackdio celery worker -l info -c 1 -O fair -Q short -n short.%%h
autorestart=true
[program:celery-beat]
command=stackdio celery beat -s /var/run/stackdio/celery-schedule --pidfile=/var/run/stackdio/celery-beat.pid
autorestart=true
;;
;; salt-master
[program:salt-master]
command=stackdio salt-master -l info
autorestart=true