Systemd/timers: Difference between revisions
https://man.archlinux.org/man/systemd.timer.5.en "services with RemainAfterExit=yes set (which stay around continuously even after the service's main process exited) are usually not suitable for activation via repetitive timers, as they will only be activated once, and then stay around forever." Tags: Manual revert Visual edit |
m use "console" highlighting and the "$" prefix for shell command snippets |
||
| 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]] | ||