2023-04-16 09:18:37 -04:00
|
|
|
[Unit]
|
|
|
|
Description=nostr-rs-relay
|
2023-04-29 17:54:09 -04:00
|
|
|
|
2023-04-16 09:18:37 -04:00
|
|
|
[Service]
|
|
|
|
User=REPLACE_WITH_YOUR_USERNAME
|
2023-04-29 17:54:09 -04:00
|
|
|
WorkingDirectory=/var/lib/nostr-rs-relay
|
2023-04-16 09:18:37 -04:00
|
|
|
Environment=RUST_LOG=warn,nostr_rs_relay=info
|
2023-04-29 17:54:09 -04:00
|
|
|
ExecStart=/usr/bin/nostr-rs-relay --config /etc/nostr-rs-relay/config.toml
|
2023-04-16 09:18:37 -04:00
|
|
|
TimeoutStopSec=10
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
2023-04-29 17:54:09 -04:00
|
|
|
|
2023-04-16 09:18:37 -04:00
|
|
|
[Install]
|
2023-04-29 17:54:09 -04:00
|
|
|
WantedBy=multi-user.target
|