interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / spark / edge-mirror-onchange.service
| 1 | [Unit] |
| 2 | Description=Spark front door: edge-mirror whenever the interplane.io publisher on this host pushes to the hub (continuous; aien-onchange on ~/.local/share/interplane-site) |
| 3 | # Source of record: ~/work/forge/web/infra/spark/edge-mirror-onchange.service; migration in infra/RUNBOOK.md. |
| 4 | # Partial replacement for edge-mirror.timer: the interplane.io publisher (sync-to-hub.sh, run by |
| 5 | # aien-run-interplane-sync) writes ~/.local/share/interplane-site/published.cksum right after it |
| 6 | # rsyncs to the Pi, so that is a real change signal on the Spark. The other folders edge-mirror |
| 7 | # pulls (aienos.com, aienos-code, aienos-hive, aienos-stats, replicate, si) are published from |
| 8 | # hosts or jobs that leave no signal here, and the Pi has no inotify-tools, so edge-mirror.timer |
| 9 | # stays until those publishers write to the Spark directly. edge-mirror.sh holds a lock, so this |
| 10 | # unit and the timer never run it at the same time. |
| 11 | After=network-online.target |
| 12 | |
| 13 | [Service] |
| 14 | Type=simple |
| 15 | Environment=PATH=/usr/bin:/bin |
| 16 | ExecStart=/home/drakestapleton/.local/bin/aien-onchange 60 86400 %h/.local/share/interplane-site -- %h/work/forge/web/infra/spark/edge-mirror.sh |
| 17 | Restart=always |
| 18 | RestartSec=10 |
| 19 | Nice=10 |
| 20 | IOSchedulingClass=idle |
| 21 | |
| 22 | [Install] |
| 23 | WantedBy=default.target |