make sure all svcadm operations are syncronous

fixes #5296
This commit is contained in:
Brian Coca 2016-10-26 21:11:40 -04:00 committed by Matt Clay
parent 0d74ae3368
commit d36bea766d

View file

@ -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"