-
Notifications
You must be signed in to change notification settings - Fork 2
/
supervisor.conf
104 lines (85 loc) · 2.46 KB
/
supervisor.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
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
95
96
97
98
99
100
101
102
103
;
; Kasa supervisord configuration file
;
; (c) 2014 Berk Birand
;
; Starts and maintains the daemons, including the IPython notebook
;
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=777
[supervisord]
; Run everything in virtualenv
environment=PATH="%(here)s/ve/bin:%(ENV_PATH)s"
; Change to the project root
directory=%(here)s
; Default Settings
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=10MB ; (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=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[inet_http_server]
port=9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:tunnel]
;command=bash "%(here)s/misc/tunnel.sh"
command=ssh -i %(here)s/misc/keys/id_digitalocean -R 8888:localhost:8888 -nNT [email protected]
user=pi
autostart=true
autorestart=true
redirect_stderr=true
;
; Base tools
;
[program:ipython_notebook]
command=%(here)s/ve/bin/ipython notebook "--profile-dir=%(here)s/profile"
user=pi ; Don't run anything as root
autostart=true
autorestart=true
redirect_stderr=true
[program:bokeh_server]
command=%(here)s/ve/bin/bokeh-server --ip=0.0.0.0
user=pi ; Don't run anything as root
autostart=true
autorestart=true
redirect_stderr=true
;
; Remote connection daemons
;
[program:nginx]
command=/home/pi/nginx/sbin/nginx -c "%(here)s/misc/nginx.conf"
autostart=true
autorestart=true
redirect_stderr=true
;
; Daemons for the backend
;
[program:broker]
command=python "%(here)s/daemons/broker.py"
autostart=true
autorestart=true
redirect_stderr=true
[program:bt_gatt]
command=python "%(here)s/daemons/bt_gatt.py"
autostart=true
autorestart=true
redirect_stderr=true
[program:wemo]
command=python "%(here)s/daemons/wemo.py"
autostart=true
autorestart=true
redirect_stderr=true
;
; Groups
;
[group:daemons]
programs=broker,bt_gatt,wemo
[group:base]
programs=ipython_notebook,bokeh_server