central/systemd/central-supervisor.service

27 lines
643 B
SYSTEMD
Raw Permalink Normal View History

[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
EnvironmentFile=/etc/central/central.env
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