runtime: NWS adapter, supervisor, archive consumer, systemd units

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson 2026-05-15 21:29:01 +00:00 committed by Ubuntu
commit 31be17430d
8 changed files with 1480 additions and 0 deletions

View file

@ -0,0 +1,26 @@
[Unit]
Description=Central archive consumer (JetStream -> TimescaleDB)
After=network-online.target nats-server.service postgresql@16-main.service
Wants=network-online.target
Requires=nats-server.service postgresql@16-main.service
[Service]
Type=simple
User=central
Group=central
WorkingDirectory=/opt/central
Environment=HOME=/opt/central
ExecStart=/opt/central/.venv/bin/central-archive
Restart=on-failure
RestartSec=5
LimitNOFILE=65536
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
ReadWritePaths=/var/lib/central
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target