blob: 9106b417ed10a983be267d65411c576298a6307c (
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
|
[Unit]
Description=bitcoind
# network-online (not network): rpcbind to the host address fails with
# getaddrinfo errors if bitcoind starts before addresses are configured
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/local/bin/bitcoind{% if bitcoind_reindex %} -reindex{% endif %}
User={{bitcoind_user}}
Restart=on-failure
RestartSec=30
# chainstate flush on shutdown can far exceed the 90s default; SIGKILL here
# risks a slow replay or a reindex
TimeoutStopSec=1800
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target
|