Skip to content

Instantly share code, notes, and snippets.

@swissrouting
Last active December 25, 2022 02:59
Show Gist options
  • Save swissrouting/76175d24b3b233bf331b59d7643f0d3c to your computer and use it in GitHub Desktop.
Save swissrouting/76175d24b3b233bf331b59d7643f0d3c to your computer and use it in GitHub Desktop.
nostream.service
# systemd service to run and monitor Nostream (Nostr TS Relay) automatically.
# Assumes that the user `nostr` exists and that the relay code is located
# in the directory `/home/nostr/nostream`.
[Unit]
Description=Nostr TS Relay
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
User=nostr
WorkingDirectory=/home/nostr/nostream
ExecStart=/home/nostr/nostream/scripts/start
ExecStop=/home/nostr/nostream/scripts/stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment