cron (x) systemd timer (o) user generic template.

basically hrs, weeks, months.
This commit is contained in:
2025-12-02 22:21:55 +08:00
parent 55e575d43e
commit 4e61fd5b6b
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Run %i hourly
[Timer]
OnCalendar=hourly
RandomizedDelaySec=1m
AccuracySec=1s
Persistent=true
Unit=%i.service
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Run %i monthly
[Timer]
OnCalendar=monthly
RandomizedDelaySec=1h
AccuracySec=45s
Persistent=true
Unit=%i.service
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Run %i weekly
[Timer]
OnCalendar=weekly
RandomizedDelaySec=30m
AccuracySec=1s
Persistent=true
Unit=%i.service
[Install]
WantedBy=timers.target