- 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
10 lines
No EOL
266 B
Desktop File
10 lines
No EOL
266 B
Desktop File
[Unit]
|
|
Description=Email Forwarder
|
|
|
|
[Service]
|
|
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
|
|
|
|
[Install]
|
|
WantedBy=default.target |