News for hackers. Stuff that matters.
Re:Working with Systemd Timers by kinglawrence on Thursday March 13, 2025 @11:59PM (#43359468)
Really liked this read. Is anyone able to explain how the backup.timer runs the backup.service? It wasn't obvious to me where the trigger was defined. I guess it's just inherent to what that unit type does, and the fact that both units are named backup? What is the name for that "package" of units that make up the whole backup program?
Re:Working with Systemd Timers by bhaney on Friday March 14, 2025 @12:11AM (#43359510)
> I guess it's just inherent to what that unit type does, and the fact that both units are named backup?

Correct. If there's no `Unit=` specified in the timer unit, it defaults to the service unit of the same name. See https://www.freedesktop.org/software/systemd/man/latest/syst...

This is also a common pattern for the socket units of socket activated services