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:45:11 -0400
commit609e42cf7a93c967f45396f6da074d3cbb4aec5e (patch)
tree14831ea7a31dc4863efec5b7c13e70c4d8190baa
parent0c0f4b3307c3a48e41588ad9e9e43bc4d0cebdc8 (diff)
downloadansible-modules-core-609e42cf7a93c967f45396f6da074d3cbb4aec5e.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 c67b8171..01633f5a 100644
--- a/system/service.py
+++ b/system/service.py
@@ -1338,9 +1338,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"