我几乎读完了所有关于主管的问题,但都无济于事
操作系统:Centos 7 SuperVisor:3.1.4(通过 yum 安装)
[root@271-appdevelopment-box supervisord.d]# systemctl status supervisord
● supervisord.service - Process Monitoring and Control Daemon
Loaded: loaded (/usr/lib/systemd/system/supervisord.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-10-09 13:57:49 IST; 1s ago
Process: 3170 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=0/SUCCESS)
Main PID: 3171 (supervisord)
CGroup: /system.slice/supervisord.service
└─3171 /usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf
以下是 /etc/supervisord.conf
;[include]
files = /etc/supervisord.d/*.conf
我的进程在 /etc/supervisord.d/ 中
.
├── gogs.conf
└── ngrok.conf
ngrok.conf 的内容
[program:ngrok]
command=/usr/local/bin/ngrok start --all --config=/etc/ngrok/ngrok.yml
autostart=true
autorestart=true
stopsignal=QUIT
我努力了
# supervisorctl update
# supervisorctl reread
No config updates to processes
# supervisorctl add ngrok
ERROR: no such process/group: ngrok
答案1
尝试取消注释;[包括]在你的/etc/supervisord.conf文件。此外,您可能希望更改
files = /etc/supervisord.d/*.conf
为files = /etc/supervisord.d/*.ini
完成后,转到 /etc/supervisord.d/ 并将文件名从 .conf 更改为 .ini(例如,gogs.conf 现在是 gogs.ini 等等)。
然后只需执行Supervisorctl 更新 && Supervisorctl 重读和sudo 主管应该显示您正在运行的进程的输出。