Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Starter script for rtorrent
#!/bin/sh
# (C) 2019 vigortek.net - rtorrent starter script
# If config file doesn't exist, don't start
sleep 10
CONFIG="/mnt/storage/.rtorrent.rc"
if [ -f "$CONFIG" ]
then
rm /tmp/rtorrent.sock
sleep 2
tmux new-session -d -s rtorrent 'sudo -u rtorrent -S rtorrent -n -o import=/mnt/storage/.rtorrent.rc' &
else
logger "No storage mounted, not starting rtorrent.."
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.