def service_up(s_name, **connection_args):
 service = _service_get(s_name, **connection_args)
 return ((service is not None) and (service.get_svrstate() == 'UP'))

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 cli example: .