lnd/templates/lnd.service.j2
author Luke Hoersten <luke@hoersten.org>
Fri, 01 May 2020 17:00:59 -0500
changeset 1 d3ef4e0b4baa
parent 0 474ccafc2349
child 4 9934a00b9e97
permissions -rw-r--r--
Expose lnd and btcd to listening public ip.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=lnd
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
Wants=btcd.service
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
After=btcd.service
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
[Service]
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
ExecStart=/usr/local/bin/lnd
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
User={{lnd_user}}
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
Restart=on-failure
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
PrivateTmp=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
ProtectSystem=full
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
NoNewPrivileges=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
PrivateDevices=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
MemoryDenyWriteExecute=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
[Install]
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
WantedBy=multi-user.target