32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
|
|
[program:xbnet]
|
|
command=/bin/bash /entrypoint.sh
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=3
|
|
stderr_logfile=/var/log/supervisor/xbnet.err.log
|
|
stdout_logfile=/var/log/supervisor/xbnet.out.log
|
|
user=root
|
|
environment=HOME="/root",USER="root",PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
# Cmd line tool to check supervisor status
|
|
# Usage:
|
|
# eg. supervisorctl -c /etc/supervisor/conf.d/supervisord.conf status
|
|
# supervisorctl -c /etc/supervisor/conf.d/supervisord.conf restart
|
|
# supervisorctl -c /etc/supervisor/conf.d/supervisord.conf stop
|
|
[supervisorctl]
|
|
serverurl=unix:///var/run/supervisor.sock
|
|
|
|
# HTTP server used to monitor supervisorctl
|
|
# Usage:
|
|
# eg. curl --unix-socket /var/run/supervisor.sock http://localhost
|
|
[unix_http_server]
|
|
file=/var/run/supervisor.sock
|
|
chmod=0700
|
|
|
|
# RPC interface required for supervisorctl to communciate with supervisor
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|