Synchronous actions were introduced in Solaris 11.2 to be precise.

pull/4420/head
Jasper Lievisse Adriaanse 2017-01-25 20:01:03 +01:00 committed by Brian Coca
parent a412be32b5
commit 4a594b3702
1 changed files with 2 additions and 2 deletions

View File

@ -1310,10 +1310,10 @@ class SunOSService(Service):
def svcadm_supports_sync(self): def svcadm_supports_sync(self):
# Support for synchronous restart/refresh is only supported on # Support for synchronous restart/refresh is only supported on
# Oracle Solaris >= 11. # Oracle Solaris >= 11.2
for line in open('/etc/release', 'r').readlines(): for line in open('/etc/release', 'r').readlines():
m = re.match('\s+Oracle Solaris (\d+\.\d+).*', line.rstrip()) m = re.match('\s+Oracle Solaris (\d+\.\d+).*', line.rstrip())
if m and m.groups()[0] > 10: if m and m.groups()[0] >= 11.2:
return True return True
def get_service_status(self): def get_service_status(self):