#!/bin/bash
set -euo pipefail

rm /tmp/rtorrent.log
touch /tmp/rtorrent.log
rm /data/.session/rtorrent.lock /data/.session/rtorrent.pid

# Start rtorrent as a daemon with the setting in the config file
# & to actually run it in the background
rtorrent -n -o "import=/rtorrent.conf" &

tail -f /tmp/rtorrent.log
