Example #1
0
def check_status():
    """
    检查squeezelite服务开启状态
    :return:
    """
    result = service.check_status("squeezelite")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False
Example #2
0
def check_status():
    """
    检查gmrender服务开启状态
    :return:
    """
    result = service.check_status("gmrender")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False
Example #3
0
def check_status():
    """
    检查networkaudiod服务开启状态
    :return:
    """
    result = service.check_status("networkaudiod")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False
Example #4
0
def check_status():
    """
    检查roonbridge服务开启状态
    :return:
    """
    result = service.check_status("roonbridge")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False
Example #5
0
def check_status():
    """
    检查logitechmediaserver服务开启状态
    :return:
    """
    result = service.check_status("logitechmediaserver")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False
Example #6
0
def check_status():
    """
    检查shairport-sync服务开启状态
    :return:
    """
    result = service.check_status("shairport-sync")
    if result == "active":
        return True
    elif result == "inactive":
        return False
    else:
        return False