Files
proxmox/config/systemd/dbis-core-gateway-outbox-worker.example.service
defiQUG dbd517b279 Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains
- Omit embedded publish git dirs and empty placeholders from index

Made-with: Cursor
2026-04-12 06:12:20 -07:00

29 lines
970 B
Desktop File

# Example unit for dbis_core gateway_outbox send loop (SolaceNet rails scaffold).
# Copy and edit paths + EnvironmentFile before enable:
# sudo cp config/systemd/dbis-core-gateway-outbox-worker.example.service /etc/systemd/system/dbis-core-gateway-outbox.service
# sudo systemctl daemon-reload && sudo systemctl enable --now dbis-core-gateway-outbox
#
# Requires: DATABASE_URL (Prisma), migrations applied so gateway_outbox exists.
# Optional: GATEWAY_OUTBOX_BATCH_SIZE, GATEWAY_OUTBOX_MAX_ATTEMPTS
[Unit]
Description=DBIS Core gateway outbox worker (rail send loop)
After=network-online.target postgresql.service
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=5
[Service]
Type=simple
User=dbis
Group=dbis
WorkingDirectory=/opt/dbis_core
Environment=NODE_ENV=production
EnvironmentFile=-/etc/dbis-core/gateway-outbox.env
ExecStart=/usr/bin/npm run worker:gateway-outbox
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target