Move configuration into the unit file

This commit is contained in:
2025-09-27 21:32:15 +02:00
parent 6a66cc0b96
commit fb842558f0
3 changed files with 80 additions and 27 deletions

View File

@@ -7,6 +7,11 @@ ExecStart=/usr/local/bin/git-monitor
Restart=on-failure
User=monitor
WorkingDirectory=/opt/src
Environment="GITMONITOR_URLS=/opt/src/repository.list"
Environment="GITMONITOR_LOCAL_PATH=/opt/src"
Environment="GITMONITOR_BRANCH_NAME=develop"
Environment="GITMONITOR_POLL_INTERVALL=30"
Environment="GITMONITOR_LOCK_FILE=/run/lock/git-monitor.lock"
[Install]
WantedBy=multi-user.target