From a1e6d847334df7b240ab804b4f8c8c77aa401075 Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 4 Jan 2026 20:15:22 +0900 Subject: [PATCH] Re-add WorkingDirectory to systemd service WorkingDirectory is required to set the cwd to the project dir for relative paths like ./state. It was accidentally removed in a previous edit. Changes: - Add WorkingDirectory= to [Service] section --- email_forwarder.service | 1 + 1 file changed, 1 insertion(+) diff --git a/email_forwarder.service b/email_forwarder.service index c4d1a9f..ef609dd 100644 --- a/email_forwarder.service +++ b/email_forwarder.service @@ -3,6 +3,7 @@ Description=Email Forwarder OnFailure=email_forwarder-fail-notify.service [Service] +WorkingDirectory=${PROJECT_DIR} 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"'