-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupervisord-dev.conf
More file actions
94 lines (84 loc) · 3.08 KB
/
supervisord-dev.conf
File metadata and controls
94 lines (84 loc) · 3.08 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=0770 ; socket file mode (default 0700)
chown=handeesofficial:handeesofficial # https://github.com/Supervisor/supervisor/issues/173
[supervisorctl]
serverurl = unix:///tmp/supervisor.sock
[supervisord]
logfile=/tmp/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=true ; (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
# [program:nginx]
# # command=/bin/sh /home/handeesofficial/backend/nginx/start.sh
# command=/usr/sbin/nginx -g 'daemon off;' # https://serverfault.com/questions/647357/running-and-monitoring-nginx-with-supervisord
# directory=/home/handeesofficial/backend
# user=root
# autostart=true
# autorestart=true
# redirect_stderr=true
[program:handees1]
command=/home/handeesofficial/backend/env/bin/gunicorn --worker-class gevent -w 1 -b 0.0.0.0:5000 wsgi:app
directory=/home/handeesofficial/backend
user=handeesofficial
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
stderr_logfile_maxbytes=0
stderr_logfile_backups=0
environment=HOME="/home/handeesofficial"
# [program:handees2]
# command=/home/handeesofficial/backend/env/bin/gunicorn --worker-class eventlet -w 1 -b localhost:5001 wsgi:app
# directory=/home/handeesofficial/backend
# user=handeesofficial
# autostart=true
# autorestart=true
# stopasgroup=true
# killasgroup=true
# stdout_logfile = /dev/stdout
# stderr_logfile = /dev/stderr
# stdout_logfile_maxbytes=0
# stdout_logfile_backups=0
# stderr_logfile_maxbytes=0
# stderr_logfile_backups=0
# environment=HOME="/home/handeesofficial"
# [program:handees3]
# command=/home/handeesofficial/backend/env/bin/gunicorn --worker-class eventlet -w 1 -b localhost:5002 wsgi:app
# directory=/home/handeesofficial/backend
# user=handeesofficial
# autostart=true
# autorestart=true
# stopasgroup=true
# killasgroup=true
# stdout_logfile = /dev/stdout
# stderr_logfile = /dev/stderr
# stdout_logfile_maxbytes=0
# stdout_logfile_backups=0
# stderr_logfile_maxbytes=0
# stderr_logfile_backups=0
[program:huey]
command=/home/handeesofficial/backend/env/bin/python3 huey_worker.py
directory=/home/handeesofficial/backend
user=handeesofficial
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
stderr_logfile_maxbytes=0
stderr_logfile_backups=0
environment=HOME="/home/handeesofficial"