Closed xTeixeira closed 5 months ago
Added an artifact for logging started/stopped timers
TimerExecs
works on a dummy timer I created. But it does not detect when the snapper timers run.
I rewrote the artifact and based it on SUSE.Linux.Events.Services (#71)
This way it should work for almost everything (I believe it still won't work for transient timers).
This artifact collects systemd timer executions.
I'm using
systemctl list-timers
with json output in order to get a list of services that are activated by timers, since we need to watch for the actual services in order to get information like Pid, Cmd and output (Line). Let me know if there are any easier/better ways to do this.There is one limitation: This doesn't appear to work for transient timers (e.g. running
systemd-run --on-active=30s somecommand
), but I couldn't find any way to make it work for these cases.