mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
added service refresh function to Solaris SMF
This commit is contained in:
parent
e78c907db0
commit
dd9b8c2716
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user