Supervisor 守护 Vapor 进程

2022-06-06 11:55:00 浏览数 (1)

安装

代码语言:txt复制
sudo apt-get install supervisor

卸载

代码语言:txt复制
sudo apt purge supervisor

查找

代码语言:txt复制
whereis supervisord

配置

代码语言:txt复制
vim /etc/supervisor/conf.d/tangpoetryapi.conf
代码语言:txt复制
[program:tangpoetryapi]
command=/home/vine/develop/tangpoetry/tangpoetryapi/.build/release/Run serve --env production
directory=/home/vine/develop/tangpoetry/tangpoetryapi/
user=vine
stdout_logfile=/var/log/supervisor/%(program_name)-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)-stderr.log

开启

代码语言:txt复制
supervisorctl reread
supervisorctl add tangpoetryapi
supervisorctl start tangpoetryapi

0 人点赞