Last active
December 25, 2022 02:59
-
-
Save swissrouting/76175d24b3b233bf331b59d7643f0d3c to your computer and use it in GitHub Desktop.
nostream.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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