lnd/templates/lnd.service.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 05 Sep 2022 16:03:32 -0500
changeset 25 c2bab619cfb5
parent 24 a216f4e9b000
permissions -rw-r--r--
Added REST api and cleaned up service unit file.
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
4
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents: 0
diff changeset
     3
Wants={{lnd_bitcoin_node}}.service
9934a00b9e97 Added bitcoind ansible
Luke Hoersten <luke@hoersten.org>
parents: 0
diff changeset
     4
After={{lnd_bitcoin_node}}.service
0
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]
24
a216f4e9b000 Added notify type to lnd service per docs.
Luke Hoersten <luke@hoersten.org>
parents: 4
diff changeset
     7
Type=notify
25
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
     8
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
ExecStart=/usr/local/bin/lnd
25
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    10
ExecStop=/usr/local/bin/lncli stop
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    11
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
User={{lnd_user}}
25
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    13
Group={{lnd_user}}
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    14
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    15
Restart=on-failure
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    16
RestartSec=60
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    17
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    18
TimeoutStartSec=1200
c2bab619cfb5 Added REST api and cleaned up service unit file.
Luke Hoersten <luke@hoersten.org>
parents: 24
diff changeset
    19
TimeoutStopSec=3600
0
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
PrivateTmp=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
ProtectSystem=full
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
NoNewPrivileges=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
PrivateDevices=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
MemoryDenyWriteExecute=true
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
[Install]
474ccafc2349 Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
WantedBy=multi-user.target