def restart(name):
    '''
    Restart the named service

    CLI Example:

    .. code-block:: bash

        salt '*' service.restart <service name>
    '''
    cmd = '/usr/sbin/svcadm restart {0}'.format(name)
    if not __salt__['cmd.retcode'](cmd, python_shell=False):
        # calling restart doesn't clear maintenance
        # or tell us that the service is in the 'online' state
        return start(name)
    return False
def restart ( name ) : cmd = '/usr/sbin/svcadm restart {0}' . format ( name ) if not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) : return start ( name ) return False
Restart the named service

    CLI Example:

    .. code-block:: bash

        salt '*' service.restart <service name>