{% extends "layout.html" %}{% block content %}

Jobs › Job {{ job.id }} · {{ job.name }} {{ job.status }}

{% if !description.is_empty() %}

{{ description }}

{% endif %}

Job

Unit
{{ unit }}
Requested
{{ job.requested }} · {{ job.requested_by }}
Started
{{ job.started }}
Finished
{{ job.finished }} · {{ job.duration }}
Status
{{ job.status }}
{% if let Some(message) = job.message %}
Message
{{ message }}
{% endif %} {% if let Some(run_id) = job.run_id %}
Run
Run {{ run_id }}
{% endif %}
{% if refresh %}

This page reloads every 5 seconds while the job is requested or running.

{% endif %}

Unit

{% if let Some(status) = status %}
Active
{{ status.active_state }}{% if !status.sub_state.is_empty() %} ({{ status.sub_state }}){% endif %}
Result
{{ status.result }}{% if let Some(code) = status.exit_status %} · exit status {{ code }}{% endif %}
{% if let Some(started) = status.started %}
Main started
{{ started }}
{% endif %} {% if let Some(exited) = status.exited %}
Main exited
{{ exited }}
{% endif %}
{% endif %} {% if let Some(error) = status_error %}

Unit status unavailable: {{ error }}

{% endif %}

From systemctl show {{ unit }}.

Log

{% if let Some(error) = log_error %}

Journal unavailable: {{ error }}

{% endif %}

Last {{ log_lines }} lines of journalctl -u {{ unit }}.

{{ log }}
{% endblock %}