CICD-215 · Runner health monitoring
Encyclopedia · Runner administration and execution infrastructure · All snippets
Previous · CICD-214 · Next · CICD-216
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
RUNNER_SERVICE.
2. Copy the snippet
bash
systemctl is-active "${RUNNER_SERVICE:?}"
journalctl --unit "$RUNNER_SERVICE" --since '15 minutes ago' --priority warning --no-pager3. How it works
systemctl returns service state, and journalctl captures a time-bounded view of daemon warnings. A known queued job can prove whether an active service is doing useful work.
4. Verify the result
Compare service health with a queued probe workflow and alert on an offline runner even if its service remains active.
Validation syntax-validated (Bash parse). Status definitions.