Add systemd service file example

This commit is contained in:
Roman Zeyde 2018-09-27 17:04:01 +03:00
parent f27b1428b1
commit 698156eb6e
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

18
contrib/electrs.service Normal file
View File

@ -0,0 +1,18 @@
[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