def status(name, sig=None):
    '''
    Return the status for a service via s6, return pid if running

    CLI Example:

    .. code-block:: bash

        salt '*' s6.status <service name>
    '''
    cmd = 's6-svstat {0}'.format(_service_path(name))
    out = __salt__['cmd.run_stdout'](cmd)
    try:
        pid = re.search(r'up \(pid (\d+)\)', out).group(1)
    except __HOLE__:
        pid = ''
    return pid
dataset/ETHPy150Open saltstack/salt/salt/modules/s6.py/status