`
sillycat
  • 浏览: 2492967 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Supervisord Trouble Shooting on CentOS7

 
阅读更多
Supervisord Trouble Shooting on CentOS7

Recently, my colleague enlarge the memory of our cloud machine, after that, supervisord is not running.
Event I re-install that, it can not start. No error, no exception, nothing useful from logging.

Finally, I checked the systemctl configuration, I found the file is empty now. So I try to fix that.

> sudo vi /usr/lib/systemd/system/supervisord.service

> cat /usr/lib/systemd/system/supervisord.service
[Unit]                                                             
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org                               
After=network.target                                               
[Service]                                                          
Type=forking                                                       
ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf            
ExecReload=/usr/bin/supervisorctl reload                           
ExecStop=/usr/bin/supervisorctl shutdown                           
User=root
[Install]                                                          
WantedBy=multi-user.target

> systemctl enable supervisord

> systemctl start supervisord

> systemctl status supervisord

It is working fine after that.

References:
https://stackoverflow.com/questions/31157928/supervisord-on-linux-centos-7-only-works-when-run-with-root


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics