interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / ops / aien-run-ipl-uptime-page.service
| 1 | [Unit] |
| 2 | Description=interplane.io probe page, rendered whenever the probe log changes (continuous; aien-onchange on ~/.local/state/interplane-uptime) |
| 3 | # Source of record: ~/work/forge/web/infra/ops/ipl-uptime-render.sh, infra/RUNBOOK.md. |
| 4 | # Writes /var/www/interplane-uptime/index.html (served as https://interplane.io/status/uptime/ by |
| 5 | # the `location ^~ /status/uptime/` alias in infra/spark/nginx/sites-interplane.io on forge/home-root). |
| 6 | # That dir is outside |
| 7 | # /var/www/interplane.io on purpose: edge-mirror and sync-to-hub both rsync --delete that one. |
| 8 | # The output subdir www/ under the state dir is not watched (aien-onchange is not recursive). |
| 9 | |
| 10 | [Service] |
| 11 | Type=simple |
| 12 | Environment=PATH=/usr/bin:/bin |
| 13 | Environment=IPL_UPTIME_OUT=/var/www/interplane-uptime/index.html |
| 14 | ExecStart=/home/drakestapleton/.local/bin/aien-onchange 60 86400 %h/.local/state/interplane-uptime -- %h/work/forge/web/infra/ops/ipl-uptime-render.sh |
| 15 | Restart=always |
| 16 | RestartSec=10 |
| 17 | Nice=5 |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=default.target |