added service refresh function to Solaris SMF

This commit is contained in:
YanChii 2013-07-17 16:56:21 +02:00
parent e78c907db0
commit dd9b8c2716

View File

@ -114,6 +114,18 @@ def restart(name):
return not __salt__['cmd.retcode'](cmd) return not __salt__['cmd.retcode'](cmd)
def reload(name):
'''
Reload the named service
CLI Example::
salt '*' service.reload <service name>
'''
cmd = '/usr/sbin/svcadm refresh {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)
def status(name, sig=None): def status(name, sig=None):
''' '''
Return the status for a service, returns a bool whether the service is Return the status for a service, returns a bool whether the service is