supervisor的版本3.0a8的版本不支持stopasgroup的参数,感觉很痛苦。准备升级,debian的版本有点老,不支持apt-get升级。
然后准备用pip install安装新版本。



  • Stop service:

    service supervisor stop


  • Backup current configuration:
    mkdir ~/supervisor
    cp -r /etc/supervisor ~/etc-supervisor
    cp /etc/default/supervisor ~/supervisor/etc-default-supervisor
    cp /etc/init.d/supervisor ~/supervisor/etc-init.d-supervisor


  • Remove current installation:
    apt-get purge supervisor
    rm -fr /etc/supervisor


  • Install new supervisor:
    pip install supervisor


  • Restore configs:
    cp ~/supervisor/etc-default-supervisor /etc/default/supervisor
    cp ~/supervisor/etc-init.d-supervisor /etc/init.d/supervisor
    cp -r ~/etc-supervisor /etc/supervisor
    ln -s /etc/supervisor/supervisor.conf /etc/supervisor.conf #这一步新版本没必要


  • Start new supervisor:
    service supervisor start


  • Verify:
    supervisorctl


  • Set to run at startup:
    update-rc.d supervisor defaults



这样做完有个问题是pip install的目录是/usr/local/bin/目录,需要修改/etc/init.d/supervisor的文件里的路径。

上一篇:
下一篇:

相关文章:

Categories: 博客记录

0 Responses so far.

Leave a Reply