Daemon Mode
Info
A daemon is a background process that runs independently of user interaction, typically used to perform tasks at scheduled intervals or in response to specific events.
In the context of tinyfeed, the daemon mode allows the tool to periodically update the generated HTML page with the latest content from the specified feeds. This is particullary useful to integrate tinyfeed with service manager such as systemd, OpenRC or even Docker. For details about those use case, please see the corresponding workflow section of the documentation.
To use tinyfeed in daemon mode, you can use the -D / --daemon
flag along with the -o / --output
flag to specify which file to keep updated.
For example:
tinyfeed --daemon -i feeds.txt -o index.html
By default the page will be updated once every day (1440 minutes). You can change with the -I / --interval
flag to specify the duration (in minutes) between each update. For example:
tinyfeed --daemon -i feeds.txt -o index.html -I 720
When adjusting the update interval please keep in mind that tinyfeed does not yet implement any cache mechanism and as such any short interval will create a probably unwanted load on the feed provider.
Opinion
While most media feeds bombard us with last minutes news, I believe that a daily update is a suitable pace that promotes a healthier news consumption habit. Perhaps refrain from reducing the interval time unless you have a specific requirement.