Issue #14693 has been reported by Justin Honold.

----------------------------------------
Bug #14693: "Provider upstart is not functional on this host" on CentOS (RHEL) 
6.2
https://projects.puppetlabs.com/issues/14693

Author: Justin Honold
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Upstart is a part of RHEL 6.x, and I have an Upstart script I've made for Nginx.

Without specifying a provider:

    err: /Stage[main]/Nginx::Service/Service[nginx]/ensure: change from stopped 
to running failed: Could not start Service[nginx]: Execution of '/sbin/service 
nginx start' returned 1:  at /etc/puppet/modules/nginx/manifests/service.pp:11

Specifying 'upstart' as a provider:

    err: /Stage[main]/Nginx::Service/Service[nginx]: Provider upstart is not 
functional on this host

I got it to function with the following sub-optimal stanza (hasstatus/pattern 
because '/sbin/status' appears to always return 0):

<pre>
  service { 'nginx':
    ensure    => 'running',
    hasstatus => false,
    pattern   => 'nginx: master process',
    restart   => '/sbin/restart nginx',
    start     => '/sbin/start nginx',
    stop      => '/sbin/stop nginx',
    require   => File['/etc/init/nginx.conf'],
  }
</pre>

What prevents Upstart from being a usable provider on RHEL systems?  Is there a 
better way I should handle this?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to