[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Dominic Cleal dcleal at redhat.com
Tue May 10 08:04:38 UTC 2011


The following commit has been merged in the experimental branch:
commit 0b18cb63b866c8034968644b849c119e515a46c6
Author: Dominic Cleal <dcleal at redhat.com>
Date:   Tue Feb 15 11:22:12 2011 +0000

    (#6324) Always fall back to svcadm enable except for the maintenance state
    
    If state is running, using svcadm enable is harmless and prevents errors with
    execute().

diff --git a/lib/puppet/provider/service/smf.rb b/lib/puppet/provider/service/smf.rb
index 3efb2eb..042d339 100755
--- a/lib/puppet/provider/service/smf.rb
+++ b/lib/puppet/provider/service/smf.rb
@@ -54,10 +54,10 @@ Puppet::Type.type(:service).provide :smf, :parent => :base do
   def startcmd
     self.setupservice
     case self.status
-    when :stopped
-      [command(:adm), :enable, @resource[:name]]
     when :maintenance
       [command(:adm), :clear, @resource[:name]]
+    else
+      [command(:adm), :enable, @resource[:name]]
     end
   end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list