Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.
This repository was archived by the owner on Oct 15, 2019. It is now read-only.

centos supervisord daemon directory #101

@miguelcnf

Description

@miguelcnf

The current method of defining the daemon directory doesn't quite work on centos 6.x:

           Error executing action `start` on resource 'service[supervisor]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Expected process to exit with [0], but received '1'
           ---- Begin output of /sbin/service supervisor start ----
           STDOUT: Starting supervisor: [FAILED]
           STDERR: /usr/bin/dirname: extra operand `.pid'
           Try `/usr/bin/dirname --help' for more information.
           /bin/bash: /usr/local/bin/supervisord: No such file or directory
           ---- End output of /sbin/service supervisor start ----
           Ran /sbin/service supervisor start returned 1

Tested on a vagrant with:

[root@default-centos-66 ~]# cat /etc/issue
CentOS release 6.6 (Final)
[root@default-centos-66 ~]# rpm -q python
python-2.6.6-64.el6.x86_64

I've traced this to:

[root@default-centos-66 ~]# grep daemon /etc/init.d/supervisor | grep -v grep
# Manages the supervisor daemon
    daemon "/usr/local/bin/supervisord -c /etc/supervisord.conf "
[root@default-centos-66 ~]# ls /usr/local/bin/supervisord
ls: cannot access /usr/local/bin/supervisord: No such file or directory
[root@default-centos-66 ~]# whereis supervisord
supervisord: /usr/bin/supervisord /etc/supervisord.conf

This is defined in: https://github.com/poise/supervisor/blob/master/templates%2Fdefault%2Frhel%2Fsupervisor.init.erb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions