Issue #2525 has been updated by James Turnbull.

Category set to service
Status changed from Unreviewed to Accepted
Target version set to 0.25.0

Yes - this is my fault - overriding the wrong method - *cmd are used for start 
and stop but not for status and restart.  

Can you confirm this patch fixes it:

<pre>
diff --git a/lib/puppet/provider/service/redhat.rb 
b/lib/puppet/provider/service/redhat.rb
index 99e2bbb..5eceede 100755
--- a/lib/puppet/provider/service/redhat.rb
+++ b/lib/puppet/provider/service/redhat.rb
@@ -52,7 +52,7 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init 
do
         end
     end
 
-    def restartcmd
+    def restart
         if @resource[:hasrestart] == :true
             [command(:service), @resource[:name], "restart"]
         else
</pre>
----------------------------------------
Bug #2525: Service types not restarting with 0.25.0rc1
http://projects.reductivelabs.com/issues/2525

Author: John A. Barbuto
Status: Accepted
Priority: Normal
Assigned to: 
Category: service
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0rc1
Keywords: 


Services are failing to restart with the following error (using sshd as an 
example): 

<pre>
Failed to call refresh on Service[sshd]: super: no superclass method 
`restartcmd'
</pre>

This appears related to #2481.  Not sure, but I think a @restartcmd@ method is 
needed in _provider/service/init.rb_


-- 
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://reductivelabs.com/redmine/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