-
Notifications
You must be signed in to change notification settings - Fork 107
/
supervisord.conf
52 lines (45 loc) · 1.93 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
[unix_http_server]
file=/etc/supervisor/supervisor.sock ; the path to the socket file
[inet_http_server] ; inet (TCP) server disabled by default
port=*:9001 ; ip_address:port specifier, *:port for all iface
username=user ; default is no username (open server)
password=123 ; default is no password (open server)
[supervisord]
logfile=/var/log/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=/etc/supervisor/supervisord.pid ; supervisord pidfile; default supervisord.pid
nodaemon=true ; start in foreground if true; default false
silent=false ; 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
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
# Client
[supervisorctl]
serverurl=unix:///etc/supervisor/supervisor.sock ; use a unix:// URL for a unix socket
[program:cooka]
directory = /root/cooka
command = /usr/local/bin/cooka server
autostart = true
startsecs = 5
autorestart = true
startretries = 0
user = root
redirect_stderr = true
stdout_logfile_maxbytes = 20MB
stdout_logfile_backups = 20
stdout_logfile = /var/log/cooka.log
[program:jupyter]
directory = /root/cooka
command = /usr/local/bin/jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token= /root/cooka ;; you can set jupyter token here
autostart = true
startsecs = 5
autorestart = true
startretries = 0
user = root
redirect_stderr = true
stdout_logfile_maxbytes = 20MB
stdout_logfile_backups = 20
stdout_logfile = /var/log/jupyter.log