# File lib/puppet/provider/service/smf.rb, line 21
21:   def setupservice
22:       if resource[:manifest]
23:         [command(:svcs), "-l", @resource[:name]]
24:         if $CHILD_STATUS.exitstatus == 1
25:           Puppet.notice "Importing #{@resource[:manifest]} for #{@resource[:name]}"
26:           svccfg :import, resource[:manifest]
27:         end
28:       end
29:   rescue Puppet::ExecutionFailure => detail
30:       raise Puppet::Error.new( "Cannot config #{self.service} to enable it: #{detail}" )
31:   end