def check_status(): """ 检查squeezelite服务开启状态 :return: """ result = service.check_status("squeezelite") if result == "active": return True elif result == "inactive": return False else: return False
def check_status(): """ 检查gmrender服务开启状态 :return: """ result = service.check_status("gmrender") if result == "active": return True elif result == "inactive": return False else: return False
def check_status(): """ 检查networkaudiod服务开启状态 :return: """ result = service.check_status("networkaudiod") if result == "active": return True elif result == "inactive": return False else: return False
def check_status(): """ 检查roonbridge服务开启状态 :return: """ result = service.check_status("roonbridge") if result == "active": return True elif result == "inactive": return False else: return False
def check_status(): """ 检查logitechmediaserver服务开启状态 :return: """ result = service.check_status("logitechmediaserver") if result == "active": return True elif result == "inactive": return False else: return False
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