Systemd Unit Generator
Build a valid systemd unit file — environment, restart policy, hardening, network wait — and enable it with one command. Runs entirely in your browser.
Unit
How it works
- Fill in the unit name, command, and environment. Restart and RestartSec control the restart policy.
- Hardening group adds NoNewPrivileges, PrivateTmp, ProtectSystem=strict, ProtectHome, and a ReadWritePaths whitelist.
- Wait for network adds
After=network-online.targetandWants=network-online.target; the Install section wiresWantedBy=multi-user.target. - After generating, run the hint below:
sudo systemctl daemon-reloadfollowed bysudo systemctl enable --now <unit>.
About Systemd Unit Generator
Systemd unit files are small but easy to get subtly wrong — a missing User, a Restart value that never recovers, or no hardening on a public-facing daemon. This generator emits a conventional [Unit]/[Service]/[Install] file with the options spelled exactly as systemd expects them.
The hardening group follows the baseline recommended for most services: no new privileges, a private tmp, a read-only system and home, and an explicit list of writable paths. Adjust ReadWritePaths to match where your app writes data, keep secrets out of Environment lines (prefer EnvironmentFile with restrictive permissions), and verify the unit with systemd-analyze verify before enabling it.