Ubuntu 12.04 + supervisord服务 - 不是从系统开始


0

supervisord在我管理的一些虚拟机上安装了,我还从这里为管理员添加了init脚本:https//github.com/Supervisor/initscripts/blob/master/ubuntu

以下是正在处理的ansible角色的一部分:

- name: Install supervisord
  pip: name=supervisor state=present
  sudo: yes

- name: Create /etc/supervisor.d/ directory
  file: path=/etc/supervisor.d/ state=directory
  sudo: yes

- name: Create /var/log/supervisor/ directory
  file: path=/var/log/supervisor state=directory
  sudo: yes

- name: Copy supervisor global configuration
  copy: src=supervisord.conf dest=/etc/supervisord.conf
  sudo: yes  

- name: Copy supervisor service script
  copy: src=supervisord_init dest=/etc/init.d/supervisord mode=0755
  sudo: yes
  register: supervisord_init

- name: Invoke update-rc.d for supervisord
  command: update-rc.d supervisord defaults
  sudo: yes

现在我发现重启后系统supervisord服务没有按原样启动。

当我手动调用init脚本服务时启动正常:

ubuntu@ubuntu:~$ sudo /etc/init.d/supervisord start
Starting supervisor: supervisord.
ubuntu@ubuntu:~$ 

是否有一些地方(可能是特定的日志文件)系统会在启动时写入尝试启动的服务?

Answers:


0

我解决了我的问题。我不知道为什么,但在我修复nginx配置后,我重新安装后supervisord一切正常。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.