Supervisor

Supervisor sample config

Config

[program:teamshell]
command=/home/ubuntu/teamshell_linux node start --config /etc/teamshell.yaml
environment=GRPC_SERVER=grpc1.teamshell.com:443
directory=/home/ubuntu
user=root
numprocs=1
stdout_logfile=/var/log/supervisor/teamshell.log
stderr_logfile=/var/log/supervisor/teamshell.log
autostart=true
autorestart=true
startsecs=2
stopsignal=INT
killasgroup=true
stopwaitsecs = 600                                                                                                                                                                   
startretries=10 # requrired because node restart fails a couple times being rejected by server reconnect timeout