def service_up(s_name, **connection_args):
    service = _service_get(s_name, **connection_args)
    return service is not None and service.get_svrstate() == 'UP'
Checks if a service is UP
dataset/ETHPy150Open saltstack/salt/salt/modules/netscaler.py/service_up