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:
parent
fad2727ae8
commit
02f6461cbc
3 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue