40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
|
|
[supervisord]
|
||
|
|
nodaemon=true
|
||
|
|
user=root
|
||
|
|
logfile=/var/log/supervisor/supervisord.log
|
||
|
|
pidfile=/var/run/supervisord.pid
|
||
|
|
childlogdir=/var/log/supervisor
|
||
|
|
|
||
|
|
[program:socktop-agent]
|
||
|
|
command=/usr/bin/socktop_agent --port 3001
|
||
|
|
directory=/home/socktop
|
||
|
|
user=root
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
startretries=3
|
||
|
|
stderr_logfile=/var/log/supervisor/socktop-agent.err.log
|
||
|
|
stdout_logfile=/var/log/supervisor/socktop-agent.out.log
|
||
|
|
priority=100
|
||
|
|
|
||
|
|
[program:webterm]
|
||
|
|
command=/app/target/release/webterm-server --host 0.0.0.0 --port 8082 --command /usr/local/bin/restricted-shell
|
||
|
|
directory=/app
|
||
|
|
user=root
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
startretries=3
|
||
|
|
stderr_logfile=/var/log/supervisor/webterm.err.log
|
||
|
|
stdout_logfile=/var/log/supervisor/webterm.out.log
|
||
|
|
priority=200
|
||
|
|
environment=HOME="/home/socktop",USER="root",TERM="xterm-256color"
|
||
|
|
|
||
|
|
[unix_http_server]
|
||
|
|
file=/var/run/supervisor.sock
|
||
|
|
chmod=0700
|
||
|
|
|
||
|
|
[supervisorctl]
|
||
|
|
serverurl=unix:///var/run/supervisor.sock
|
||
|
|
|
||
|
|
[rpcinterface:supervisor]
|
||
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|