dgb-wallet/ops/digibyte.service

35 lines
870 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=DigiByte Core (pruned wallet backend)
Documentation=https://github.com/DigiByte-Core/digibyte
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=digibyte
Group=digibyte
ExecStart=/usr/local/bin/digibyted -conf=/etc/digibyte/digibyte.conf -datadir=/var/lib/digibyte
ExecStop=/usr/local/bin/digibyte-cli -conf=/etc/digibyte/digibyte.conf stop
Restart=on-failure
RestartSec=10
TimeoutStopSec=120
# --- Hardening ---
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/digibyte /etc/digibyte
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=true
MemoryDenyWriteExecute=true
RestrictRealtime=true
RestrictSUIDSGID=true
[Install]
WantedBy=multi-user.target