components/ruby/puppet/patches/puppet-14-smf-refreshable.patch
author osayama <osamu.sayama@oracle.com>
Fri, 16 Sep 2016 08:38:07 +0900
changeset 6914 0c9c2d460328
parent 5864 06703eb0e31f
permissions -rw-r--r--
24576350 Latin font should not be used for ASCII when monospace with CJK fonts
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5864
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     1
smf understands the concept of refreshable
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     2
PUP-6238 Serivce SMF should declare has_feature :refreshable
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     3
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     4
diff --git a/lib/puppet/provider/service/smf.rb b/lib/puppet/provider/service/smf.rb
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     5
--- a/lib/puppet/provider/service/smf.rb
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     6
+++ b/lib/puppet/provider/service/smf.rb
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     7
@@ -23,6 +23,8 @@ Puppet::Type.type(:service).provide :smf, :parent => :base do
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     8
   commands :adm => "/usr/sbin/svcadm", :svcs => "/usr/bin/svcs"
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
     9
   commands :svccfg => "/usr/sbin/svccfg"
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    10
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    11
+  has_feature :refreshable
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    12
+
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    13
   def setupservice
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    14
       if resource[:manifest]
06703eb0e31f 23099224 The SMF provider needs to add the '-s' flag to the restartcmd method
Shawn Ferry <shawn.ferry@oracle.com>
parents:
diff changeset
    15
         [command(:svcs), "-l", @resource[:name]]