author | Shawn Ferry <shawn.ferry@oracle.com> |
Tue, 26 Apr 2016 23:36:26 -0400 | |
changeset 5864 | 06703eb0e31f |
permissions | -rw-r--r-- |
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]] |