mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
runtime: NWS adapter, supervisor, archive consumer, systemd units
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
714971fe99
commit
31be17430d
8 changed files with 1480 additions and 0 deletions
26
systemd/central-archive.service
Normal file
26
systemd/central-archive.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue