2026-05-15 21:29:01 +00:00
|
|
|
[Unit]
|
|
|
|
|
Description=Central supervisor (adapter scheduler + publisher)
|
|
|
|
|
After=network-online.target nats-server.service postgresql@16-main.service
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
Requires=nats-server.service
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
User=central
|
|
|
|
|
Group=central
|
|
|
|
|
WorkingDirectory=/opt/central
|
|
|
|
|
Environment=HOME=/opt/central
|
2026-05-16 02:38:21 +00:00
|
|
|
EnvironmentFile=/etc/central/central.env
|
2026-05-15 21:29:01 +00:00
|
|
|
ExecStart=/opt/central/.venv/bin/central-supervisor
|
|
|
|
|
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
|