[Nix-dev] Systemd User Timers: timerConfig section?
Kevin Cox
kevincox at kevincox.ca
Fri Feb 19 13:08:48 CET 2016
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##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160219/32aaf153/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160219/32aaf153/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5658 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160219/32aaf153/attachment-0001.bin
More information about the nix-dev
mailing list