systemd-service-units

systemd-service-units is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 29 tokens per session (492 once invoked), scanned A, original, Apache-2.0.

A guide to running long-lived programs with systemd, the Linux service manager that starts programs and keeps them running. It covers service definitions, permissions, environment variables, logs, and restarts.

In plain words
What is it for?
Use it to start a server at boot, restart it after failures, provide configuration from a protected file, inspect logs, and manage its running status.
Why use it?
It removes the need to start a service manually after reboot and helps recover it when it crashes without running it as the administrator.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to start a server at boot, restart it after failures, provide configuration from a protected file, inspect logs, and manage its running status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikasudasi/skill-vault/systemd-service-units
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vikasudasi/skill-vault --skill systemd-service-units
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for systemd-service-units

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/systemd-service-units/github.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/systemd-service-units)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/systemd-service-units"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/systemd-service-units/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for systemd-service-units

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/systemd-service-units"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/systemd-service-units.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 492 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00492
Opus 5 $0.00015 $0.00246
Sonnet 5 $0.00006 $0.00098
Haiku 4.5 $0.00003 $0.00049

Measured 9d ago against content hash 2752e3eebd56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

systemd-service-units scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_unit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo systemctl daemon-reload

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skill_vault/data/skills/systemd-service-units/SKILL.md · 61 lines

What it actually says

Running Services with systemd

Use when a self-hosted process must start on boot and auto-restart on crash.

Unit file

[Unit]
Description=Skill Vault MCP server
After=network.target

[Service]
Type=simple
User=svc
WorkingDirectory=/opt/skill-vault
ExecStart=/opt/skill-vault/.venv/bin/skill-vault serve --transport streamable-http --host 127.0.0.1 --port 8000
Restart=on-failure
RestartSec=3
EnvironmentFile=/etc/skill-vault/svc.env

[Install]
WantedBy=multi-user.target

Manage it

sudo systemctl daemon-reload
sudo systemctl enable --now skill-vault-mcp
sudo systemctl status skill-vault-mcp
sudo journalctl -u skill-vault-mcp -f

Key options

  • Restart=on-failure + RestartSec — crash recovery without a watchdog.
  • EnvironmentFile= — keep secrets in a mode-0600 env file, not the unit.
  • User=/Group= — run as an unprivileged user; never run daemons as root.
  • Type=simple is right for a foreground process; Type=notify/Type=forking for daemons that signal readiness.

Pitfalls

  • After editing a unit you MUST systemctl daemon-reload or changes are ignored.
  • If systemd is degraded/broken on the host, ship a no-systemd fallback (a plain run script) too — don't depend on systemd being healthy.
  • A service that exits immediately with Restart=on-failure will still be retried; check journalctl for the real error.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 61 lines · 29 tokens per session scan A 2752e3eebd56

Subscribe to this mod's changes

systemd-service-units is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 24d ago), licensed Apache-2.0. It adds 29 tokens to every session and 492 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.