summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-10-26 21:11:40 -0400
committerBrian Coca <brian.coca+git@gmail.com>2016-11-01 13:44:56 -0400
commit164225aa43e1c57fc97d9520aa34eec532edacea (patch)
tree9ffc6dbf7a1237953c8415ac4cadc39c753b837d
parentf2f7783ef3cacb27313d02dde8b4239876f0a476 (diff)
downloadansible-modules-core-164225aa43e1c57fc97d9520aa34eec532edacea.tar.gz
make sure all svcadm operations are syncronous
fixes #5296 (cherry picked from commit ebcc46fa27de3a62904cd85392b50598271905d2)
-rw-r--r--system/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/service.py b/system/service.py
index 18b76d32..d216e683 100644
--- a/system/service.py
+++ b/system/service.py
@@ -1365,9 +1365,9 @@ class SunOSService(Service):
elif self.action == 'stop':
subcmd = "disable -st"
elif self.action == 'reload':
- subcmd = "refresh"
+ subcmd = "refresh -s"
elif self.action == 'restart' and status == 'online':
- subcmd = "restart"
+ subcmd = "restart -s"
elif self.action == 'restart' and status != 'online':
subcmd = "enable -rst"