orama/systemd/debros-namespace-rqlite@.service
2026-02-05 13:32:06 +02:00

45 lines
1008 B
Desktop File

[Unit]
Description=DeBros Namespace RQLite (%i)
Documentation=https://github.com/DeBrosOfficial/network
After=network.target
PartOf=debros-node.service
StopWhenUnneeded=false
[Service]
Type=simple
User=debros
Group=debros
WorkingDirectory=/home/debros
# Environment file contains namespace-specific config
EnvironmentFile=/home/debros/.orama/data/namespaces/%i/rqlite.env
# Start rqlited with args from environment (using shell to properly expand JOIN_ARGS)
ExecStart=/bin/sh -c 'exec /usr/local/bin/rqlited \
-http-addr ${HTTP_ADDR} \
-raft-addr ${RAFT_ADDR} \
-http-adv-addr ${HTTP_ADV_ADDR} \
-raft-adv-addr ${RAFT_ADV_ADDR} \
${JOIN_ARGS} \
/home/debros/.orama/data/namespaces/%i/rqlite/${NODE_ID}'
# Graceful shutdown
TimeoutStopSec=30s
KillMode=mixed
KillSignal=SIGTERM
# Restart policy
Restart=on-failure
RestartSec=5s
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=debros-rqlite-%i
# Resource limits
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target