diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-supervisor')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-supervisor/supervisor.service | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-supervisor/supervisord.conf | 31 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service b/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service new file mode 100644 index 0000000000..e9d3f706b8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service | |||
@@ -0,0 +1,15 @@ | |||
1 | [Unit] | ||
2 | Description=Supervisor process control system for UNIX | ||
3 | Documentation=http://supervisord.org | ||
4 | After=network.target | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf | ||
8 | ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown | ||
9 | ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload | ||
10 | KillMode=process | ||
11 | Restart=on-failure | ||
12 | RestartSec=50s | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=multi-user.target | ||
diff --git a/meta-python/recipes-devtools/python/python3-supervisor/supervisord.conf b/meta-python/recipes-devtools/python/python3-supervisor/supervisord.conf new file mode 100644 index 0000000000..3fb9b492dd --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-supervisor/supervisord.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | ; supervisor config file | ||
2 | |||
3 | [unix_http_server] | ||
4 | file=/var/run/supervisor.sock ; (the path to the socket file) | ||
5 | chmod=0700 ; sockef file mode (default 0700) | ||
6 | |||
7 | [supervisord] | ||
8 | logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log) | ||
9 | pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | ||
10 | childlogdir=/var/log/ ; ('AUTO' child log dir, default $TEMP) | ||
11 | |||
12 | ; the below section must remain in the config file for RPC | ||
13 | ; (supervisorctl/web interface) to work, additional interfaces may be | ||
14 | ; added by defining them in separate rpcinterface: sections | ||
15 | [rpcinterface:supervisor] | ||
16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||
17 | |||
18 | [supervisorctl] | ||
19 | serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket | ||
20 | |||
21 | ; The [include] section can just contain the "files" setting. This | ||
22 | ; setting can list multiple files (separated by whitespace or | ||
23 | ; newlines). It can also contain wildcards. The filenames are | ||
24 | ; interpreted as relative to this file. Included files *cannot* | ||
25 | ; include files themselves. | ||
26 | |||
27 | [include] | ||
28 | files = /etc/supervisor/conf.d/*.conf | ||
29 | |||
30 | ;[inet_http_server] | ||
31 | ;port=127.0.0.1:9001 | ||