Difference between revisions of "Talk:Systemd/Timers"

From ArchWiki
Jump to: navigation, search
("Monthy events" absence interrogations)
 
m (Monthly events: Changed month shortcut (m defaults to minutes, one has to put month for this duration to be understood))
Line 9: Line 9:
 
[Timer]
 
[Timer]
 
OnBootSec=20min
 
OnBootSec=20min
OnUnitActiveSec=1m
+
OnUnitActiveSec=1month
 
Unit=timer-monthly.target
 
Unit=timer-monthly.target
  

Revision as of 17:13, 19 January 2014

Monthly events

Is there any specific reason why "monthly" timing isn't presented? A limitation in systemd workings or whatever? I was more feeling like setting the "pkgstats.service" to run once a month, this is how I realized I hadn't created such folder by following the article.

Only modifications -- apart from substituting "weekly" by "monthly" everywhere relevant -- seem to be in the [Timer] section:

/etc/systemd/system/timer-monthly.timer
[Unit]
Description=Monthly Timer

[Timer]
OnBootSec=20min
OnUnitActiveSec=1month
Unit=timer-monthly.target

[Install]
WantedBy=basic.target
/etc/systemd/system/timer-monthly.target
[Unit]
Description=Monthly Timer Target
StopWhenUnneeded=yes

If that seems ok to you I'll add it and update mkdir/systemctl instructions accordingly.

Neitsab (talk) 18:47, 12 January 2014 (UTC)