Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)