Created
April 4, 2017 23:31
-
-
Save matthewhochler/b6931a11e46092abbc07a35a0050388e to your computer and use it in GitHub Desktop.
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
app=$HOME/apps/nzbget-loop | |
cat > $app << EOF | |
#!/usr/bin/env bash | |
export TERM="xterm" | |
until ~/apps/nzbget/nzbget -s; do | |
echo "NZBGet crashed. Respawning.." >&2 | |
sleep 1 | |
done | |
EOF | |
chmod +x $app | |
screen -d -m -S nzbget-loop $app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment