{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Services{% endblock %} {% block content %}

Services

The windows of the building: each lit window is a running service. Restart one after changing its files by hand.

{{ m.icon("refresh") }}Refresh
{% for s in services %} {% endfor %}
ServiceStateStarts on boot
{{ s.label }}{{ s.unit }} {{ m.state_window(s.active) }} {{ "Yes" if s.enabled == "enabled" else s.enabled|capitalize }} {% for action, label in [("restart", "Restart"), ("start", "Start")] if (action == "restart" and s.active == "active") or (action == "start" and s.active != "active") %}
{{ m.csrf_field() }}
{% endfor %} {% if s.active == "active" and s.unit not in ("ssh", "panelcp-web") %}
{{ m.csrf_field() }}
{% endif %}
{% endblock %}