Brief
Surmise about supervisor
What is Supervisor?
make any modules a daemon
Environment
CentOS
How to install
# add epel repository
sudo yum -y install epel-release
# install
sudo yum -y install supervisor
# start supervisor
sudo systemctl start supervisord
How to configure
# make a module a daemon
sudo supervisorctl start <module name>
Create a configuration file under /etc/supervisor.d/
e.g.
/etc/supervisor.d/xxx.ini
# xxx is a module name which is registered
cat /etc/supervisor.d/xxx.ini
[program:xxx]
command=xxx
user=***
autostart=false
autorestart=true
log_stdout=true
log_stderr=true
redirect_stderr=true
stdout_logfile_maxbytes=**MB
stdout_logfile_backups=**
stdout_logfile=***
No comments:
Post a Comment