news.volyx.in

Love systemd timers (blog.tjll.net)

396 points by yacin · 88 days ago · 300 comments on HN

Article summary

The article discusses the benefits of using systemd timers as a replacement for traditional cron jobs, highlighting their ability to solve problems such as ambiguous $PATH settings, lost stdout and stderr output, and difficult execution history. Systemd timers offer a more modern and flexible way to schedule tasks, with features like calendar events and time spans. The article provides examples of how to use systemd timers and their configuration options. Systemd timers can be used to create a completely isolated daemon with limited access to the filesystem and devices.

Main themes

  • Systemd timers
  • Cron job replacement
  • Systemd configuration
  • Task scheduling
  • Linux system administration

What commenters say

  • Systemd service files have a syntax that some find ugly, but it is still an improvement over traditional init scripts.
  • The use of spaces in systemd service files can be confusing, but they are actually allowed and ignored by the parser.
  • Some commenters prefer other configuration formats, such as YAML or TOML, but others argue that the current format is sufficient.
  • Systemd timers are a powerful tool for managing system tasks, but their complexity can be overwhelming for some users.
  • The benefits of systemd timers, such as their ability to create isolated daemons, make them a valuable tool for system administrators.
  • The criticism of systemd is often unwarranted, and it has improved significantly over traditional init systems like SysV.
  • The use of systemd timers can be particularly useful in combination with other tools, such as NixOS, to create a robust and maintainable system configuration.