Checks if a specified service is running. Can be a service within a docker.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
duthost.is_service_running("syncd", {docker_name})
service_name
- name of service- Required:
True
- Type:
String
- Required:
docker_name
- name of dockerservice
is a member of- Required:
True
- Type:
String
- Required:
True
if service is running, False
otherwise.