17 lines
473 B
SYSTEMD
17 lines
473 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Run mail2couch Rust Implementation every 30 minutes
|
||
|
|
Documentation=https://kode.naiv.no/olemd/mail2couch
|
||
|
|
Requires=mail2couch-rs.service
|
||
|
|
|
||
|
|
[Timer]
|
||
|
|
# Run every 30 minutes
|
||
|
|
OnCalendar=*:0/30
|
||
|
|
# Run 2 minutes after boot if we missed a scheduled run
|
||
|
|
OnBootSec=2min
|
||
|
|
# If the system was off, run shortly after startup
|
||
|
|
Persistent=true
|
||
|
|
# Add some randomization to avoid all users hitting servers simultaneously
|
||
|
|
RandomizedDelaySec=300
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=timers.target
|