ajcrowe / puppet-supervisord

Puppet Module to install and configure applications under supervisord
MIT License
37 stars 104 forks source link

Wrong supervisorctl path for Centos 6.4 #20

Closed ghola closed 10 years ago

ghola commented 10 years ago

I'm getting the following error: 'Error: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_reread]: Failed to call refresh: Could not find command '/usr/local/bin/supervisorctl'

And while /usr/local/bin/supervisorctl does not exist, /usr/bin/supervisorctl does exist.

ajcrowe commented 10 years ago

Hi ghola,

You just need to specify this in your supervisor config with the $supervisord::executable_ctl param, either in hiera or where you call the main supervisord class.

see here: https://github.com/ajcrowe/puppet-supervisord/blob/master/manifests/init.pp#L15

ghola commented 10 years ago

Ok, thanks for the tip. Note that the common practice i've seen in other puppet modules is to have defaults by OS (or at least by OS family). This not only avoids false bug reports but also avoids putting even more work on the user of the module. At the least the approach taken by this module should be documented.

ajcrowe commented 10 years ago

I'll have to investigate, did you install with pip, or your system package?

hugohenrique commented 9 years ago

The same error with Ubuntu 14.04

`Error: Could not start Service[supervisord]: Execution of '/etc/init.d/supervisord start' returned 1:``

Error: /Stage[main]/Supervisord::Service/Service[supervisord]/ensure: change from stopped to running failed: Could not start Service[supervisord]: Execution of '/etc/init.d/supervisord start' returned 1:

ajcrowe commented 9 years ago

Hi @hugohenrique I dont think this is same error at all.

Could you open a new issue and provide as much detail as possible, perhaps manually run the init script.

hugohenrique commented 9 years ago

Hi @ajcrowe,

I was able to ride defining the path manually:

class { 'supervisord':
  install_pip    => true,
  executable     => '/usr/bin/supervisord',
  executable_ctl => '/usr/bin/supervisorctl'
}

Thanks for working!

ajcrowe commented 9 years ago

That's great @hugohenrique, did you install supervisor with pip or using the system package?

It might be good to have these set automatically if someone is using system packages rather than pip.