diff options
| author | St33v <github@f3rr3t.com> | 2026-06-09 13:04:04 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2026-06-09 13:04:04 +1000 |
| commit | f058e83da43b0b661b45a7bd4c82b49c57e61d93 (patch) | |
| tree | effc21ef57b00b45c8caa29424772f7fbbde03d8 /systemd/radar-retry.service | |
| parent | c132b3985e24e557549544a1d10fb0daababdfb1 (diff) | |
Add IDR713 radar fetch and APNG loop
radarFetch.sh fetches BOM IDR713 transparencies (24h cache) and the
last six 6-minute echo frames, composites them via cached lower/upper
plates, and publishes an APNG loop to /srv/www/radar/.
systemd: radar.{service,timer} on a 6-min cadence, with retry units
mirroring the synoptic pattern.
nginx: new radar.pestrel.com vhost (still commented in setup.sh until
DNS propagation is confirmed).
setup.sh provisions radar dirs, installs radar units, enables timer.
deploy.sh accepts synoptic|radar arg.
Parameterised on product code; adding another radar is a one-line
config change.
Spec: doc/bom-radar-spec.md.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'systemd/radar-retry.service')
| -rw-r--r-- | systemd/radar-retry.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/radar-retry.service b/systemd/radar-retry.service new file mode 100644 index 0000000..b878303 --- /dev/null +++ b/systemd/radar-retry.service @@ -0,0 +1,12 @@ +[Unit] +Description=Retry BOM radar fetch (after failure) + +[Service] +Type=oneshot +User=st33v +WorkingDirectory=/var/lib/radar +ExecStart=/opt/radar/radarFetch.sh +ExecStopPost=/bin/sh -c 'STATUS=SUCCESS; [ "$$EXIT_STATUS" != "0" ] && STATUS=FAILURE; logger -t radar-retry -p user.err "radar-retry $$STATUS exit=$$EXIT_STATUS"' +SyslogIdentifier=radar-retry +StandardOutput=journal +StandardError=journal |
