Fix service_mgr fact for Solaris; svcs is used to list services.
Instead use 'smf' to reflect the name of framework, as is done elsewhere (e.g. 'systemd' instead of 'systemctl').
This commit is contained in:
parent
3700bcb6dd
commit
52960ff7d0
1 changed files with 1 additions and 2 deletions
|
@ -385,8 +385,7 @@ class Facts(object):
|
||||||
elif self.facts['system'] == 'AIX':
|
elif self.facts['system'] == 'AIX':
|
||||||
self.facts['service_mgr'] = 'src'
|
self.facts['service_mgr'] = 'src'
|
||||||
elif self.facts['system'] == 'SunOS':
|
elif self.facts['system'] == 'SunOS':
|
||||||
#FIXME: smf?
|
self.facts['service_mgr'] = 'smf'
|
||||||
self.facts['service_mgr'] = 'svcs'
|
|
||||||
elif self.facts['distribution'] == 'OpenWrt':
|
elif self.facts['distribution'] == 'OpenWrt':
|
||||||
self.facts['service_mgr'] = 'openwrt_init'
|
self.facts['service_mgr'] = 'openwrt_init'
|
||||||
elif self.facts['system'] == 'Linux':
|
elif self.facts['system'] == 'Linux':
|
||||||
|
|
Loading…
Reference in a new issue