nostr/relayer/files/relayer.service
author Luke Hoersten <luke@hoersten.org>
Sun, 21 Jul 2024 12:42:43 -0500
changeset 235 f88bb54f63bd
parent 217 e69a030975c4
permissions -rw-r--r--
Added scrypted role.
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]
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=relayer nostr relay
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
Requires=network.target postgresql.service
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
Before=nginx.service
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]
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
User=relayer
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
EnvironmentFile=/etc/relayer/relayer.env
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
ExecStart=/usr/local/bin/relayer
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
Restart=on-failure
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
[Install]
3069b7d001f7 Added nostr relayer role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
WantedBy=multi-user.target