20 lines
765 B
Desktop File
20 lines
765 B
Desktop File
# User-level systemd service to run main.py
|
||
# Uses a wrapper script so the working directory and .env are found correctly.
|
||
# Replace REPO_PATH automatically using the setup command we provide.
|
||
# Install step 2 does three things:
|
||
# - Replaces REPO_PATH with your repo’s absolute path in the COPY of this unit at ~/.config/systemd/user/
|
||
# so ExecStart points to the correct scripts/run_main.sh.
|
||
# - Marks scripts/run_main.sh as executable (chmod +x).
|
||
# - Reloads user units (systemctl --user daemon-reload) so systemd picks up the updated service/timer.
|
||
[Unit]
|
||
Description=Run main.py (LibGuides notifier)
|
||
Wants=network-online.target
|
||
After=network-online.target
|
||
|
||
[Service]
|
||
Type=oneshot
|
||
ExecStart="REPO_PATH/scripts/run_main.sh"
|
||
|
||
[Install]
|
||
WantedBy=default.target
|