lnurld/server/templates/lnurld.service.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 23 Jul 2023 14:28:28 -0500
changeset 220 16226c249f6f
parent 218 1db4800bc4f5
permissions -rw-r--r--
Minor fixes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
214
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
218
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     2
Description=LNURL Daemon
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     3
Wants=lnd.service
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     4
After=lnd.service
214
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
[Service]
218
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     7
Environment="GIN_MODE=release"
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     8
ExecStart=/usr/local/bin/lnurld
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
     9
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    10
User={{lnurld_user}}
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    11
Group={{lnurld_user}}
214
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
218
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    13
Type=simple
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    14
KillMode=process
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    15
LimitNOFILE=128000
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    16
TimeoutSec=240
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    17
Restart=always
1db4800bc4f5 Got lnurld running.
Luke Hoersten <luke@hoersten.org>
parents: 217
diff changeset
    18
RestartSec=60
214
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
[Install]
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
WantedBy=multi-user.target