mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
26 lines
602 B
SYSTEMD
26 lines
602 B
SYSTEMD
|
|
[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
|
||
|
|
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
|