Rename main.py to email_forwarder.py and fix systemd variable expansion

- Rename main.py to email_forwarder.py for better readability
- Update systemd service to use  in ExecStart and EnvironmentFile,
  remove WorkingDirectory to fix expansion issues
- Update install.sh and README references
- Drop-in sets PROJECT_DIR for runtime expansion

Changes:
- File rename: main.py -> email_forwarder.py
- Service: ExecStart and EnvironmentFile now use
- Docs: Updated to reflect new script name
This commit is contained in:
Jeena 2026-01-04 18:16:37 +09:00
parent fad2727ae8
commit 02f6461cbc
3 changed files with 2 additions and 4 deletions

View file

@ -2,9 +2,7 @@
Description=Email Forwarder
[Service]
Type=oneshot
WorkingDirectory=${PROJECT_DIR}
ExecStart=${PROJECT_DIR}/venv/bin/python main.py
ExecStart=${PROJECT_DIR}/venv/bin/python ${PROJECT_DIR}/email_forwarder.py
ExecStartPost=/usr/bin/curl -fsS --retry 3 ${UPTIME_SUCCESS_URL}
OnFailure=email_forwarder-fail-notify.service