author | Luke Hoersten <luke@hoersten.org> |
Mon, 07 Oct 2024 15:26:03 -0500 | |
changeset 35 | f7dc2fa74e74 |
parent 25 | c2bab619cfb5 |
permissions | -rw-r--r-- |
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 | 3 |
Wants={{lnd_bitcoin_node}}.service |
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 |