{% load pr_format %}

What will be stopped

Process
{{ a.identity.name|default:"?" }} PID {{ a.identity.pid }}{% if a.identity.process_id %} details{% endif %}
Command line
{% if a.target %}{{ a.target.cmdline|cmdline|default:"—" }}{% else %}{{ a.identity.cmdline|cmdline|default:"—" }}{% endif %}
Folder
{% if a.target %}{{ a.target.cwd|default:"—" }}{% else %}{{ a.identity.cwd|default:"—" }}{% endif %}
User
{% if a.target %}{{ a.target.username|default:"—" }}{% else %}{{ a.identity.username|default:"—" }}{% endif %}
Started by
{% for p in a.parent_chain reversed %}{{ p.name|default:"?" }} {{ p.pid }}{% if p.protected %} protected{% endif %} → {% empty %}unknown → {% endfor %}this process
Mode
{% if a.mode == "tree" %}The whole tree ({{ a.impact.processes }} process{{ a.impact.processes|pluralize:"es" }}){% else %}This process only{% endif %}
How
{% if a.method_label %}{{ a.method }} {{ a.method_label }}{% else %}—{% endif %}

Impact

Ports freed
{{ a.impact.ports|join:", "|default:"none observed" }}
Services
{% for s in a.impact.services %}
{{ s }}
{% empty %}No registered service is affected.{% endfor %}
{% for w in a.warnings %}
{{ w }}
{% endfor %} {% for r in a.reasons %}
Refused: {{ r }}
{% endfor %}
{% if a.mode == "tree" or a.members|length > 1 %}

Stop order (children first)

{% for m in a.members %} {% endfor %}
ProcessPIDUserHowPortsServicesStatus
{% if m.depth %}↳ {% endif %}{% if m.process_id %}{{ m.name|default:"?" }}{% else %}{{ m.name|default:"?" }}{% endif %}{% if m.depth == 0 %} target{% endif %} {{ m.pid }}{{ m.username|default:"—" }}{{ m.method }} {{ m.ports|join:", "|default:"—" }}{{ m.services|join:"; "|default:"—" }} {% if m.refusals %}protected{% else %}ok{% endif %}
{% endif %}

Do it yourself instead

{% for d in a.docker %}

{% if d.container %}Container {{ d.container }} publishes {{ d.port }}.{% else %}Find the container publishing this port:{% endif %}

{{ d.command }}
{% endfor %} {% for c in a.commands %}

{{ c.label }}

{{ c.command }}
{% endfor %} {% if a.command_note %}

{{ a.command_note }}

{% endif %}