interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / infra / ops / aien-run-ipl-uptime-page.service

20 lines · 990 bytes Raw Blame History
1[Unit]
2Description=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]
11Type=simple
12Environment=PATH=/usr/bin:/bin
13Environment=IPL_UPTIME_OUT=/var/www/interplane-uptime/index.html
14ExecStart=/home/drakestapleton/.local/bin/aien-onchange 60 86400 %h/.local/state/interplane-uptime -- %h/work/forge/web/infra/ops/ipl-uptime-render.sh
15Restart=always
16RestartSec=10
17Nice=5
18
19[Install]
20WantedBy=default.target