Synchronous actions were introduced in Solaris 11.2 to be precise.
parent
a412be32b5
commit
4a594b3702
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue