Systemd/timers: Difference between revisions
imported>SuperSandro2000 No edit summary |
imported>Papanito Add some more details about timers |
||
| Line 26: | Line 26: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
The following example would starts once a day (at 12:00am). When activated, it triggers the service immediately if it missed the last start time (option Persistent=true), for example due to the system being powered of | |||
<syntaxHighlight lang="nix"> | |||
... | |||
serviceConfig = { | |||
OnCalendar = "daily"; | |||
Persistent = true; | |||
}; | |||
}; | |||
</syntaxHighlight> | |||
Some more examples can be found [https://wiki.archlinux.org/title/Systemd/Timers here] and[https://www.freedesktop.org/software/systemd/man/systemd.timer.html here]. | |||
== Usage == | == Usage == | ||