bitcoind/templates/bitcoind.service.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 07 Oct 2024 23:30:59 -0500
changeset 36 8de33340cca9
parent 4 9934a00b9e97
permissions -rw-r--r--
Added hacks to fix lnd bitcoind 28 bug.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=bitcoind
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
After=network.target
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
[Service]
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
ExecStart=/usr/local/bin/bitcoind
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
User={{bitcoind_user}}
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
PrivateTmp=true
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
ProtectSystem=full
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
NoNewPrivileges=true
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
PrivateDevices=true
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
MemoryDenyWriteExecute=true
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
[Install]
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
WantedBy=multi-user.target