-
Notifications
You must be signed in to change notification settings - Fork 1
/
supervisord.conf
64 lines (55 loc) · 1.73 KB
/
supervisord.conf
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
[supervisord]
nodaemon=true
logfile = /logs/supervisord/supervisord.log
loglevel = debug
[program:mysql]
; Don't start the MySQL daemon if we're in production
command=/bin/bash -c 'if [ "$DJANGO_PRODUCTION" != "true" ]; then /usr/bin/mysqld_safe; fi'
autostart=true
exitcodes=0
startsecs=0
priority=1
autorestart=unexpected
[program:initialize]
command=/bin/bash /code/initialize.sh
exitcodes=0
startsecs=0
priority=10
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
redirect_stderr=true
logfile = /logs/nginx/nginx.log
priority=20
[program:gunicorn]
directory=/code/westbesel
command=/usr/local/bin/gunicorn -b 127.0.0.1:8000 -w 1 westbesel.wsgi --log-level=critical --log-file=/logs/gunicorn/gunicorn.log
autostart=true
autorestart=true
;user=app
;stopasgroup=true
;killasgroup=true
redirect_stderr=True
priority=20
[unix_http_server]
file=/var/run//supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[program:cron]
command = cron -f -L 15
autostart=true
autorestart=true
[program:svmtrip]
command=/bin/bash -c '/code/westbesel/static/prediction/scripts/SVMTriP/SVMTriP/SVMTriP/svm_classify_server /code/westbesel/static/prediction/scripts/SVMTriP/SVMTriP/SVMTriP/model_16aa.dat 8001'
autostart=true
exitcodes=0
startsecs=0
priority=1
autorestart=unexpected
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket