Systemd/timers: Difference between revisions
Thefossguy (talk | contribs) m Added the use of `OnCalendar` option in the example of `systemd.timers` and add a section on verifying the calendar event by getting next _N_ times when the calendar event would occur. |
m use "console" highlighting and the "$" prefix for shell command snippets |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 119: | Line 119: | ||
List active timers and their current state: | List active timers and their current state: | ||
</translate> | </translate> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
systemctl list-timers | $ systemctl list-timers | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
| Line 126: | Line 126: | ||
Manually run a service once for testing purposes: | Manually run a service once for testing purposes: | ||
</translate> | </translate> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
systemctl start hello-world | $ systemctl start hello-world | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:systemd]] | [[Category:systemd]] | ||