This commit is contained in:
parent
3581f899d7
commit
540101f305
2 changed files with 76 additions and 239 deletions
|
@ -3,7 +3,7 @@
|
|||
enable = true;
|
||||
port = 14764; # port forwarded
|
||||
downloadDir = "/mnt/storage/torrents/r";
|
||||
package = pkgs.jesec-rtorrent;
|
||||
package = pkgs.rtorrent;
|
||||
configText =
|
||||
let cfg = config.services.rtorrent;
|
||||
in pkgs.lib.mkForce ''
|
||||
|
@ -27,15 +27,15 @@
|
|||
method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
|
||||
|
||||
# Create directories
|
||||
fs.mkdir.recursive = (cat,(cfg.basedir))
|
||||
#fs.mkdir = (cat,(cfg.basedir))
|
||||
|
||||
fs.mkdir = (cat,(cfg.download))
|
||||
fs.mkdir = (cat,(cfg.logs))
|
||||
fs.mkdir = (cat,(cfg.session))
|
||||
#fs.mkdir = (cat,(cfg.download))
|
||||
#fs.mkdir = (cat,(cfg.logs))
|
||||
#fs.mkdir = (cat,(cfg.session))
|
||||
|
||||
fs.mkdir = (cat,(cfg.watch))
|
||||
fs.mkdir = (cat,(cfg.watch),"/load")
|
||||
fs.mkdir = (cat,(cfg.watch),"/start")
|
||||
#fs.mkdir = (cat,(cfg.watch))
|
||||
#fs.mkdir = (cat,(cfg.watch),"/load")
|
||||
#fs.mkdir = (cat,(cfg.watch),"/start")
|
||||
|
||||
# Drop to "$(cfg.watch)/load" to add torrent
|
||||
schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
|
||||
|
@ -110,6 +110,12 @@
|
|||
print = (cat, "Logging to ", (cfg.logfile))
|
||||
log.open_file = "log", (cfg.logfile)
|
||||
log.add_output = "debug", "log"
|
||||
|
||||
# Flood support
|
||||
method.redirect=load.throw,load.normal
|
||||
method.redirect=load.start_throw,load.start
|
||||
method.insert=d.down.sequential,value|const,0
|
||||
method.insert=d.down.sequential.set,value|const,0
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue