summarylogtreecommitdiffstats
path: root/electrs.service
blob: 1e1b16566a5924ad4821e19df24e7bc0c7dd5025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[Unit]
Description=Electrum Server
Documentation=https://github.com/romanz/electrs/blob/master/doc/usage.md

After=bitcoind.service
Wants=bitcoind.service

[Service]
ExecStart=/usr/bin/electrs --log-filters INFO --daemon-dir=/var/lib/bitcoind --db-dir=/var/lib/electrs

User=bitcoin
Group=bitcoin

Type=simple
KillMode=process
TimeoutSec=60
Restart=always
RestartSec=60

Environment="RUST_BACKTRACE=1"

StateDirectory=electrs
StateDirectoryMode=0700

# Hardening measures
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
PrivateDevices=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target