Synchronous actions were introduced in Solaris 11.2 to be precise.
This commit is contained in:
parent
a412be32b5
commit
4a594b3702
1 changed files with 2 additions and 2 deletions
|
@ -1310,10 +1310,10 @@ class SunOSService(Service):
|
|||
|
||||
def svcadm_supports_sync(self):
|
||||
# Support for synchronous restart/refresh is only supported on
|
||||
# Oracle Solaris >= 11.
|
||||
# Oracle Solaris >= 11.2
|
||||
for line in open('/etc/release', 'r').readlines():
|
||||
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
|
||||
|
||||
def get_service_status(self):
|
||||
|
|
Loading…
Reference in a new issue