I don't know if it is missing for user timer units but there is a timerConfig. However defining repeating timers in systemd is weird so I have included an example that I use below.
systemd.timers.sysstat-journald = {
wantedBy = [ "multi-user.target" ];
timerConfig = {
OnBootSec = "1m";
OnUnitActiveSec = "20s";
AccuracySec = "1s";
};
};
The key elements are "OnBootSec" which is when to run the first timer
after boot, and "OnUnitActiveSec" which is how long to wait before
running it again.
Hope that helps.##SELECTION_END##
signature.asc
Description: This is a digitally signed message part
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
