interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / infra / spark / edge-mirror-onchange.service

23 lines · 1242 bytes Raw Blame History
1[Unit]
2Description=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.
11After=network-online.target
12
13[Service]
14Type=simple
15Environment=PATH=/usr/bin:/bin
16ExecStart=/home/drakestapleton/.local/bin/aien-onchange 60 86400 %h/.local/share/interplane-site -- %h/work/forge/web/infra/spark/edge-mirror.sh
17Restart=always
18RestartSec=10
19Nice=10
20IOSchedulingClass=idle
21
22[Install]
23WantedBy=default.target