Start from
Related tools
- Reverse Proxy Config GeneratorGenerate nginx and Caddy reverse proxy configs with TLS, websockets, and security headers.
- WireGuard ConfigGenerate WireGuard key pairs and ready-to-use configs with QR export for phones.
- GAM Command BuilderBuild correct GAM commands for Google Workspace admin tasks from plain English intent.
- Log File AnalyzerSummarize an access or application log: traffic, status codes, top paths, slow requests and errors, without uploading it anywhere.
- SMART DecoderPaste smartctl output and get a plain-English drive health verdict.
- Jinja Template TesterTest Home Assistant Jinja templates locally against sample entity state.
What it does
Builds a complete systemd .service unit file from a sectioned form: description, ExecStart and ExecStop, working directory, user and group, restart policy with a configurable RestartSec, ordering against the network target, and environment variables. Twelve security hardening directives (NoNewPrivileges, ProtectSystem=strict, ProtectHome, PrivateTmp, and more) are individual switches, each with a line on what it does and what it can break, with a conservative set on by default. It can also generate a matching .timer unit as a systemd-native alternative to cron, shown as its own file.
How to use it
Start from a preset (simple service, one-shot script, timer job, Docker container, Node or Python app) or fill in the form, and watch the unit update as you type. A problem such as a relative ExecStart path or a malformed Environment line is flagged next to the field that caused it. Copy or download the .service file, and the .timer file when the schedule switch is on, then run the install commands listed underneath, which use your unit name.
Why this one
Most systemd unit examples online are stale gists copy-pasted from a decade-old blog post, with no hardening and no thought given to the restart policy. This generator produces a current, opinionated unit with security hardening on by default, built entirely in your browser: your files and inputs never leave your device.
FAQ
- What does Restart=on-failure do?
- It restarts the service automatically when it exits with a nonzero code, is killed by a signal, or times out, but not when it exits cleanly (code 0) or is stopped intentionally with systemctl stop. That makes it the safest default for long-running daemons: crashes recover on their own, deliberate stops stay stopped.
- Is the hardening safe to leave on?
- The defaults here are a sane, conservative baseline that works for most services out of the box. The one directive to watch is ProtectSystem=strict, which makes almost the entire filesystem read-only to the service: if your app writes files outside /var, you will need to add ReadWritePaths=/your/path to the unit.
- Can it make a timer instead of a long-running service?
- Yes. Turn on "Run on a schedule" and pick a schedule chip (hourly, daily, weekdays at 9, every 15 minutes) or type any OnCalendar expression. You get a separate .timer file with Persistent=true, so a missed run fires as soon as the system is back up, similar to anacron. The service then has no [Install] section, because the timer is what you enable.
Keyboard shortcuts: press ? anywhere on this page to see them.