1 control service supervisor manifest and stale process recovery
forgejo-actions edited this page 2026-07-13 19:45:35 +00:00

Control Service Supervisor Manifest And Stale Process Recovery

The control-service supervisor manifest records locally managed service processes so the panel can clean up stale children without killing unrelated processes.

Purpose

Use this page when services become orphaned, stale PIDs remain in .aether-control-services.json, or the panel refuses to clean up after a workspace move.

Required Inputs

The manifest records version, supervisor id, workspace root, process ids, service names, and launch metadata. Cleanup compares process records with the current supervisor and workspace before terminating anything.

Procedure

Let the panel record and unregister managed services. On startup, allow stale cleanup to reconcile the manifest. If the workspace root changes, expect process records to clear because old PIDs cannot be trusted for the new root.

Failure Modes

Corrupt or empty manifests should fall back safely. Stale PIDs may already belong to another process. Process-group behavior differs by platform, so manual recovery may require inspecting command lines before killing anything.

Verification

After cleanup, confirm the manifest contains only live managed service records for the current workspace. Use process inspection before manual termination when the manifest and OS process table disagree.