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').
pull/21526/head
Jasper Lievisse Adriaanse 8 years ago committed by Brian Coca
parent 3700bcb6dd
commit 52960ff7d0

@ -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':

Loading…
Cancel
Save