1 Add support for degraded state in smf and remove unused variable stime.
2 Submitted upstream as PUP-6095
4 --- puppet-3.8.6/lib/puppet/provider/service/smf.rb.orig 2016-04-19 14:56:32.596751150 -0700
5 +++ puppet-3.8.6/lib/puppet/provider/service/smf.rb 2016-04-19 14:59:32.495860166 -0700
10 - svcs("-H").split("\n").select{|l| l !~ /^legacy_run/ }.collect do |line|
11 - state,stime,fmri = line.split(/\s+/)
12 + svcs("-H", "-o", "state,fmri" ).split("\n").select{|l| l !~ /^legacy_run/ }.collect do |line|
13 + state,fmri = line.split(/\s+/)
15 when /online/; :running
16 when /maintenance/; :maintenance
17 + when /degraded/; :degraded
20 new({:name => fmri, :ensure => status})
26 + when :maintenance, :degraded
27 [command(:adm), :clear, @resource[:name]]
29 [command(:adm), :enable, "-rs", @resource[:name]]
38 "Cannot manage legacy services through SMF"