$
systemd timer generator
Unit
system
Name
Scope
System (/etc/systemd/system)
User (~/.config/systemd/user)
Description
Unit to activate
Leave this alone to generate a matching service below. Name an installed unit instead, like
fstrim
, to schedule something that already exists.
Schedule
Trigger
Wall clock (OnCalendar=)
Relative to an event (OnBootSec=, …)
+ Add schedule
Several OnCalendar= lines are allowed — the timer fires at whichever comes first.
Values are time spans, e.g.
15min
,
1h
,
2h 30min
.
Timer options
Service
Type
oneshot (runs and exits)
simple (long-running)
exec
forking
notify
User
ExecStart (absolute path)
ExecStartPre (optional)
Group
WorkingDirectory
Environment
+ Add variable
Next runs
File
backup.timer
Copy
Download
File
backup.service
Copy
Download
Install
Copy
×
Examples