{% extends "portregistry/base.html" %} {% load pr_format %} {% block title %}{{ proc.name|default:"Process" }} ({{ proc.pid }}){% endblock %} {% block heading %}{{ proc.name|default:"?" }} pid {{ proc.pid }} {% if proc.active %}active{% else %}no longer observed{% endif %}{% endblock %} {% block content %}
{% if proc.active %}Register as service{% endif %} {% if proc.identity_complete %}{% if control.enabled %}Stop…{% else %}How to stop this{% endif %}{% endif %} {% if proc.name %}
{% csrf_token %}
{% endif %}

Process identity

Identity
{{ proc.identity_key }}
Identity hash
{{ proc.identity_hash|default:"—" }}
Complete
{% if proc.identity_complete %}yes (machine + PID + creation time){% else %}incomplete creation time unavailable; never merged with later processes reusing this PID{% endif %}
Started
{{ proc.started_at|ago }}
First seen
{{ proc.first_seen|ago }}
Last seen
{{ proc.last_seen|ago }}
{% if proc.ended_at %}
Stopped owning endpoints
{{ proc.ended_at|ago }}
{% endif %}

Metadata

Executable
{{ proc.exe|default:"—" }}
Command line
{{ proc.cmdline|cmdline|default:"—" }}
Working dir
{{ proc.cwd|default:"—" }}
User
{{ proc.username|default:"—" }}
Parent
{% if parent %}{{ parent.name|default:"?" }} pid {{ parent.pid }}{% else %}{{ proc.ppid|default:"—" }}{% if proc.ppid %} (not owning endpoints){% endif %}{% endif %}
Children
{% for c in children %}{{ c.name|default:"?" }} {{ c.pid }}{% if not forloop.last %}, {% endif %}{% empty %}none owning endpoints{% endfor %}
Project
{% if proc.project_name %}{{ proc.project_name }} {{ proc.project_root }}{% else %}—{% endif %}
{% if proc.metadata_errors %}
Some fields are restricted by OS permissions: {{ proc.metadata_errors|pretty_json }}
{% endif %}

Command lines are displayed for identification only; PortRegistry never executes them and never reads environment variables.

Endpoints

{% for s in sockets %} {% empty %}{% endfor %}
EndpointStateFirst seenLast seen
{{ s|endpoint }}{{ s.state }}{% if not s.active %} (gone){% endif %}{{ s.first_seen|ago }}{{ s.last_seen|ago }}
No endpoints recorded.
{% if same_pid %}

Other process instances with PID {{ proc.pid }}

PIDs are reused by the OS; these are distinct processes (different creation times).

{% endif %}

History

{% endblock %}