forked from Timmy_Foundation/the-nexus
This commit is contained in:
16
scripts/systemd/runner-health-probe.service
Normal file
16
scripts/systemd/runner-health-probe.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Gitea Runner Health Probe (poka-yoke zero-runner detection)
|
||||
Documentation=https://forge.alexanderwhitestone.com/Timmy_Foundation/the-nexus/issues/1097
|
||||
After=network.target act_runner.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/root/wizards/the-nexus/scripts/runner-health-probe.sh
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
Environment=HOME=/root
|
||||
# Token can be set here or via /etc/act_runner/gitea-probe-token file
|
||||
# EnvironmentFile=/etc/act_runner/probe.env
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
scripts/systemd/runner-health-probe.timer
Normal file
14
scripts/systemd/runner-health-probe.timer
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Gitea Runner Health Probe — fires every 5 minutes (poka-yoke #1097)
|
||||
Documentation=https://forge.alexanderwhitestone.com/Timmy_Foundation/the-nexus/issues/1097
|
||||
|
||||
[Timer]
|
||||
# Start 2 minutes after boot (let network and act_runner settle)
|
||||
OnBootSec=2min
|
||||
# Then fire every 5 minutes
|
||||
OnUnitActiveSec=5min
|
||||
# Re-fire missed runs after downtime
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user