diff options
author | makefu <github@syntax-fehler.de> | 2019-09-25 14:19:11 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-09-25 14:20:13 +0200 |
commit | 44e473db5721c369d7e148a311139dcbfefc70c8 (patch) | |
tree | 581709f4817be5b8df5e52664b9b39e5d9339e3a /2configs/torrent.nix | |
parent | 2cc900088b9e245153faa59cb4ae64d63723843c (diff) |
ma torrent: log rpc events, cleanup
Diffstat (limited to '2configs/torrent.nix')
-rw-r--r-- | 2configs/torrent.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/2configs/torrent.nix b/2configs/torrent.nix index ca368dbf0..9b7365375 100644 --- a/2configs/torrent.nix +++ b/2configs/torrent.nix @@ -35,7 +35,9 @@ in { rtorrent.members = [ "download" ]; }; - krebs.rtorrent = { + krebs.rtorrent = let + d = config.makefu.dl-dir; + in { enable = true; web = { enable = true; @@ -45,7 +47,17 @@ in { rutorrent.enable = true; enableXMLRPC = true; listenPort = peer-port; - downloadDir = config.makefu.dl-dir; + downloadDir = d + "/finished/incoming"; + watchDir = d + "/watch"; + # TODO: maybe test out multiple watch dirs with tags: https://github.com/rakshasa/rtorrent/wiki/TORRENT-Watch-directories + extraConfig = '' + # log.add_output = "debug", "rtorrent-systemd" + # log.add_output = "dht_debug", "rtorrent-systemd" + # log.add_output = "tracker_debug", "rtorrent-systemd" + log.add_output = "rpc_events", "rtorrent-systemd" + log.add_output = "rpc_dump", "rtorrent-systemd" + system.daemon.set = true + ''; # dump old torrents into watch folder to have them re-added }; |