lnurld/server/templates/lnurld.service.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 03 Aug 2025 12:51:13 -0500
changeset 41 85750c5b0661
parent 31 562b76293a66
permissions -rw-r--r--
Lots of performance updates and added some flags for reindexing etc. Also added zram comporession.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=LNURL Daemon
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
Wants=lnd.service
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
After=lnd.service
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
[Service]
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
Environment="GIN_MODE=release"
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
ExecStart=/usr/local/bin/lnurld
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
User={{lnurld_user}}
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
Group={{lnurld_user}}
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
Type=simple
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
KillMode=process
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
LimitNOFILE=128000
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
TimeoutSec=240
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
Restart=always
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
RestartSec=60
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
[Install]
562b76293a66 Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
WantedBy=multi-user.target