bitcoind/templates/bitcoind.service.j2
author Luke Hoersten <luke@hoersten.org>
Sat, 07 Nov 2020 08:18:50 -0600
changeset 15 f1c6e6e4c43b
parent 4 9934a00b9e97
permissions -rw-r--r--
Bumped dbcache size
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