1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-25 15:20:36 +01:00
electrs/contrib/electrs.service

19 lines
357 B
SYSTEMD
Raw Normal View History

2018-09-27 17:04:01 +03:00
[Unit]
Description=Electrum Rust Server
[Service]
Type=simple
ExecStart=/path/to/electrs/target/release/electrs -vvvv --db-dir /path/to/electrs/db/
Restart=on-failure
RestartSec=60
Environment="RUST_BACKTRACE=1"
# Hardening measures
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target