def f_services_dead(): s = systemd.Systemd() data = s.services_state("dead") page_title = "Dead Services" return render_template("dead.html", data=data, title=page_title)
def f_services_enabled(): s = systemd.Systemd() data = s.services_config("enabled") page_title = "Enabled Services" return render_template("enabled.html", data=data, title=page_title)
def f_services_running(): s = systemd.Systemd() data = s.services_state("running") page_title = "Running Services" return render_template("running.html", data=data, title=page_title)
def f_services_exited(): s = systemd.Systemd() data = s.services_state("exited") page_title = "Exited Services" return render_template("exited.html", data=data, title=page_title)
def f_services_inactive(): s = systemd.Systemd() data = s.services_state("inactive") page_title = "Inactive Services" return render_template("inactive.html", data=data, title=page_title)