-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupervisord.conf
43 lines (35 loc) · 1.41 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
; Assumes dockerfile with:
; ENTRYPOINT ["/usr/bin/supervisord", "-c", "/var/app/supervisord.conf"]
[unix_http_server]
file=supervisor.sock ; the path to the socket file
[supervisord]
; logfile=/var/app/logs/ ; (main log file;default $CWD/supervisord.log)
logfile=supervisord.log
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=5 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
silent=true ; no logs to stdout if true; default false
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[supervisorctl]
serverurl=unix://supervisor.sock ; use a unix:// URL for a unix socket
[inet_http_server]
port=*:9001
username=admin
password=admin
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
;[program:myprogram]
;priority=10
;directory=/var/app
;command=python myscript.py
;user=root
;autostart=true
;autorestart=true
[program:callerid]
command=python -u service-callerid-parser.py
directory=./
stdout_logfile=./service-callerid-parser_output.txt
redirect_stderr=true