def status(name, sig=None):
    if sig:
        return bool(__salt__['status.pid'](sig))
    cmd = '/etc/rc.d/{0} onestatus'.format(name)
    return not __salt__['cmd.retcode'](cmd)
Create a service with a name.
dataset/ETHPy150Open saltstack/salt/salt/modules/netbsdservice.py/status--crossover with--dataset/ETHPy150Open bfrog/whizzer/whizzer/rpc/service.py/Service.__init__