mail2couch/systemd/mail2couch-rs-daily.timer
Ole-Morten Duesund e6ab28bc9e feat: add systemd user services and timer units
- Create systemd user service files for both Go and Rust implementations
- Add comprehensive timer configurations: 30-minute, hourly, and daily schedules
- Include security settings, resource limits, and proper service dependencies
- Add justfile recipes for service management (install, enable, disable, status)
- Remove deprecated Makefile in favor of just-based build system
- Fix Rust compilation warnings in imap.rs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 23:59:34 +02:00

17 lines
No EOL
474 B
SYSTEMD

[Unit]
Description=Run mail2couch Rust Implementation daily
Documentation=https://kode.naiv.no/olemd/mail2couch
Requires=mail2couch-rs.service
[Timer]
# Run daily at 2:30 AM with some randomization
OnCalendar=*-*-* 02:30:00
# Run 10 minutes after boot if we missed a scheduled run
OnBootSec=10min
# If the system was off, run shortly after startup
Persistent=true
# Add up to 30 minutes randomization to spread load
RandomizedDelaySec=1800
[Install]
WantedBy=timers.target