Files
teams-bot/systemd/libguides-notifier.service
T
2025-11-16 01:20:44 -05:00

20 lines
765 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 repos 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