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:
Jasper Lievisse Adriaanse 2017-02-11 12:26:38 +01:00 committed by Brian Coca
parent 3700bcb6dd
commit 52960ff7d0

View file

@ -385,8 +385,7 @@ class Facts(object):
elif self.facts['system'] == 'AIX':
self.facts['service_mgr'] = 'src'
elif self.facts['system'] == 'SunOS':
#FIXME: smf?
self.facts['service_mgr'] = 'svcs'
self.facts['service_mgr'] = 'smf'
elif self.facts['distribution'] == 'OpenWrt':
self.facts['service_mgr'] = 'openwrt_init'
elif self.facts['system'] == 'Linux':