Skip to main content

systemd Unit Generator

Tool

systemd Unit Generator

Generate systemd service units and optional timer units from one place.

FilesService + timerexample-job.service, example-job.timer
ScheduleCalendar timerOnCalendar=Mon..Fri 09:00
Command/usr/local/bin/example-joboneshot units omit Restart=

Unit

Name the generated unit files and describe what the service does.

Generated as example-job.service and example-job.timer.

Service

Set how systemd should execute the process and which account it should run under.

Restart is omitted for oneshot units.

One KEY=value entry per line.

Timer

Generate an optional .timer unit from a preset, calendar expression, or monotonic timer directive.

Examples: daily, Mon..Fri 09:00, *:0/15, OnBootSec=10min.

Run at 09:00 from Monday through Friday.

Generated Output

Copy this full block, create the listed unit files, then run the included commands.

example-job.service + example-job.timer

Calendar timer