--- /dev/null
+[Unit]
+Description=rtorrent session
+After=network.target
+
+[Service]
+Type=simple
+User=plom
+Group=plom
+WorkingDirectory=/home/plom
+ExecStartPre=-/bin/rm -f /home/plom/session/rtorrent.lock
+ExecStart=/usr/bin/screen -S rtorrent -Dm /usr/bin/rtorrent
+ExecStop=/usr/bin/screen -S rtorrent -X quit
+Restart=on-failure
+RestartSec=3
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+# where to write downloads into
+directory.default.set = ~/downloads
+
+# rtorrent's memory
+session.path.set = ~/session
+
+# security and paranoia
+dht.mode.set = disable
+protocol.pex.set = no
+protocol.encryption.set = require,require_RC4,allow_incoming,try_outgoing
+
expect_setup_finished_file setup_server_has_been_run setup_server.sh
cd "${setup_scripts_dir}"
-# ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" seedbox
+./copy_dirtree.sh "${config_tree_prefix}/home_files" "" seedbox
+./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" seedbox
./install_for_target.sh seedbox
+mkdir /home/plom/{downloads|session}
+chown plom:plom /home/plom/{downloads|session}
+systemctl enable rtorrent.service --now