agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/devops/systemd-headless-service/SKILL.md

systemd-headless-service

Skill0 starsChanged 4 days agoMITView on GitHub

Background a TTY/tray app as a 24/7 user systemd service that survives reboot. Use when an app exits under `systemd --user` with no TTY, auto-exits because `!process.stdin.isTTY`, or must run headless with linger after PC restart.

  • Deletes or force-pushes

The file

Files
SKILL.md

systemd Headless Service

Background a TTY/tray app as a 24/7 user systemd service that survives reboot: write the user unit, walk the six steps that actually matter, and verify active + enabled + auto-restart.

Global Rules

  • Confirm scope before destructive steps. "Run 24/7" is not an uninstall; any rm -rf of an app's data dir needs explicit confirmation (see pitfalls.md).
  • Find the real process and port before killing or enabling anything. A port number does not name an app; the wrong kill breaks the user's setup.

Routing

StepReferencePurpose
Unit templatereferences/unit-template.mdThe user-unit INI, enable + start commands, and survive-crash check.
Steps that matterreferences/steps.mdThe six in-order steps: process/port, launch inspection, headless flag, MemoryMax, wait time, linger.
Pitfallsreferences/pitfalls.mdDouble-launch race, deleted cwd, OOM during build, sqlite WAL lock.
Verifyreferences/verify.mdis-active, is-enabled, port check, and auto-restart proof.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.