This commit is contained in:
parent
e18b028d06
commit
9b29d097f8
3 changed files with 31 additions and 30 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.recursive = (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")))
|
||||
|
@ -100,7 +100,8 @@
|
|||
system.daemon.set = true
|
||||
|
||||
# XML-RPC interface
|
||||
network.scgi.open_local = (cat,(cfg.rpcsock))
|
||||
#network.scgi.open_local = (cat,(cfg.rpcsock))
|
||||
network.scgi.open_port = localhost:5000
|
||||
schedule = scgi_group,0,0,"execute.nothrow=chown,\":rtorrent\",(cfg.rpcsock)"
|
||||
schedule = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",(cfg.rpcsock)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue