-
Notifications
You must be signed in to change notification settings - Fork 11
/
supervisord.conf
41 lines (34 loc) · 1.42 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
; Copyright 2017, Dell EMC, Inc.
; run echo_supervisord_conf > supervisord.conf to generate sample config file
[supervisord]
logfile=%(ENV_LOGDIR)s/supervisord.log ; main log file; default $CWD/supervisord.log
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
loglevel=info ; log level; default info; others: debug,warn,trace
pidfile=/var/run/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
user=root
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
[inet_http_server]
port=9001
username=ucspe
password=ucspe
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface: make_main_rpcinterface
[program:ucs-worker]
command=bash -c '/usr/bin/python $WORKINGPATH/tasks.py worker'
redirect_stderr=true
stdout_logfile=%(ENV_LOGDIR)s/ucs-worker.log
stdout_logfile_maxbytes=0
user=%(ENV_USER)s
[program:ucs-service]
command=/usr/bin/python -u %(ENV_WORKINGPATH)s/app.py
redirect_stderr=true
stdout_logfile=%(ENV_LOGDIR)s/ucs-service.log
stdout_logfile_maxbytes=0
stopsignal=INT
user=%(ENV_USER)s