email-forwarder/email_forwarder.service
Jeena 6d8a5002e7 Move OnFailure to [Unit] section
OnFailure directive must be in [Unit], not [Service], for systemd
user services to recognize it.

Changes:
- Move OnFailure from [Service] to [Unit] in email_forwarder.service
2026-01-04 20:13:24 +09:00

11 lines
301 B
Desktop File

[Unit]
Description=Email Forwarder
OnFailure=email_forwarder-fail-notify.service
[Service]
ExecStart=${PROJECT_DIR}/venv/bin/python -m email_forwarder
EnvironmentFile=${PROJECT_DIR}/.env
ExecStartPost=/bin/sh -c '/usr/bin/curl -fsS --retry 3 "$UPTIME_SUCCESS_URL"'
[Install]
WantedBy=default.target