Add systemd service scripts and convenience wrappers to README
This commit is contained in:
parent
28a1fbe59a
commit
fd4085773a
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,12 @@ python3 email_tunnel.py
|
|||
|
||||
Run under a process supervisor (systemd, supervisord, etc.) so restarts and log rotation are handled.
|
||||
|
||||
### Systemd helpers
|
||||
- `email_tunnel.service`: unit file to run the tunnel under systemd (adjust paths/user/group as needed).
|
||||
- `install_email_tunnel.sh`: installs/enables/starts the service, validating `.env` and byte-compiling the script.
|
||||
- `uninstall_email_tunnel.sh`: stops, disables, and removes the service unit.
|
||||
- `logs_email_tunnel.sh`: convenience wrapper around `journalctl` for viewing service logs/status.
|
||||
|
||||
## Operational behavior
|
||||
- State tracking: `STATE_FILE` records the last successfully handled UID. It is only advanced after successful delivery, or after a logged `DeliveryError` to avoid reprocessing a permanently failed message.
|
||||
- Retries: IMAP SEARCH/FETCH and SMTP SEND are retried up to 3 times with small backoff. Persistent failures log and move on.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue