def is_service_running(service): """ Used in module pcs.config Commandline options: no options """ if utils.is_systemctl(): dummy_output, retval = utils.run(["systemctl", "status", service]) else: dummy_output, retval = utils.run(["service", service, "status"]) return retval == 0
def is_service_running(service): if utils.is_systemctl(): dummy_output, retval = utils.run(["systemctl", "status", service]) else: dummy_output, retval = utils.run(["service", service, "status"]) return retval == 0
def is_pacemaker_running(): if utils.is_systemctl(): dummy_output, retval = utils.run(["systemctl", "status", "pacemaker.service"]) else: dummy_output, retval = utils.run(["service", "pacemaker", "status"]) return retval == 0
def is_corosyc_running(): if utils.is_systemctl(): dummy_output, retval = utils.run(["systemctl", "status", "corosync.service"]) else: dummy_output, retval = utils.run(["service", "corosync", "status"]) return retval == 0