- 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>
17 lines
No EOL
488 B
SYSTEMD
17 lines
No EOL
488 B
SYSTEMD
[Unit]
|
|
Description=Run mail2couch Go Implementation every hour
|
|
Documentation=https://kode.naiv.no/olemd/mail2couch
|
|
Requires=mail2couch-go.service
|
|
|
|
[Timer]
|
|
# Run every hour at a random minute to spread load
|
|
OnCalendar=hourly
|
|
# Run 5 minutes after boot if we missed a scheduled run
|
|
OnBootSec=5min
|
|
# If the system was off, run shortly after startup
|
|
Persistent=true
|
|
# Add randomization to avoid all users hitting servers simultaneously
|
|
RandomizedDelaySec=600
|
|
|
|
[Install]
|
|
WantedBy=timers.target |