docker – Blame information for rev 62
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
62 | office | 1 | # Launch as a daemon |
2 | system.daemon.set = true |
||
3 | |||
4 | # Instance layout |
||
5 | method.insert = cfg.basedir, private|const|string, (cat,"/data/rtorrent/") |
||
6 | method.insert = cfg.download, private|const|string, (cat,"/downloads/") |
||
7 | # x rtorrent 0.9.8 |
||
8 | #method.insert = cfg.download_complete, private|const|string, (cat,(cfg.download),"complete/") |
||
9 | #method.insert = cfg.download_temp, private|const|string, (cat,(cfg.download),"temp/") |
||
10 | method.insert = cfg.download_complete, (cat,(cfg.download)) |
||
11 | method.insert = cfg.download_temp, (cat,(cfg.download)) |
||
12 | method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/") |
||
13 | method.insert = cfg.session, private|const|string, (cat,(cfg.basedir),".session/") |
||
14 | method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/") |
||
15 | method.insert = cfg.rundir, private|const|string, (cat,"/var/run/rtorrent/") |
||
16 | |||
17 | # Gets the full path of data of a torrent (it's a workaround for the possibly empty 'd.base_path' attribute) |
||
18 | method.insert = d.data_path, simple, "if=(d.is_multi_file), (cat,(d.directory),/), (cat,(d.directory),/,(d.name))" |
||
19 | |||
20 | # Default directory to save the downloaded torrents |
||
21 | # x rtorrent 0.9.8 |
||
22 | #directory.default.set = (cat,(cfg.download_temp)) |
||
23 | directory.default.set = (cat,(cfg.download)) |
||
24 | |||
25 | # Default session directory |
||
26 | session.path.set = (cat,(cfg.session)) |
||
27 | |||
28 | # PID file |
||
29 | execute.nothrow = sh,-c,(cat,"echo >",(cfg.rundir),"rtorrent.pid"," ",(system.pid)) |
||
30 | |||
31 | # SCGI socket and make it group-writable and secure |
||
32 | network.scgi.open_local = (cat, (cfg.rundir), "scgi.socket") |
||
33 | schedule2 = scgi_permission, 0, 0, (cat,"execute.nothrow=chmod,\"g+w,o=\",",(cfg.rundir),"scgi.socket") |
||
34 | |||
35 | # Listening port for incoming peer traffic |
||
36 | network.port_range.set = @RT_INC_PORT@-@RT_INC_PORT@ |
||
37 | network.port_random.set = no |
||
38 | |||
39 | # UDP port to use for DHT |
||
40 | dht.port.set = @RT_DHT_PORT@ |
||
41 | |||
42 | # XMLRPC size limit |
||
43 | network.xmlrpc.size_limit.set = @XMLRPC_SIZE_LIMIT@ |
||
44 | |||
45 | # Configure session saving interval to balance disk usage and torrent information accuracy |
||
46 | schedule2 = session_save, 1200, @RT_SESSION_SAVE_SECONDS@, ((session.save)) |
||
47 | |||
48 | # Save torrents immediately to prevent losing them between session saving intervals |
||
49 | # Schedule task to run in background (with unique hash) to avoid seeding impact |
||
50 | method.set_key = event.download.inserted_new, "schedule2 = ((d.hash)), 0, 0, ((d.save_full_session))" |
||
51 | |||
52 | # Configure whether to delay tracker announces at startup |
||
53 | # x rtorrent 0.9.8 |
||
54 | #trackers.delay_scrape = @RT_TRACKER_DELAY_SCRAPE@ |
||
55 | |||
56 | # Configure TCP rmem and wmem for rTorrent client |
||
57 | network.send_buffer.size.set = @RT_SEND_BUFFER_SIZE@ |
||
58 | network.receive_buffer.size.set = @RT_RECEIVE_BUFFER_SIZE@ |
||
59 | |||
60 | # Configure preallocation feature for rTorrent client |
||
61 | system.file.allocate.set = @RT_PREALLOCATE_TYPE@ |
||
62 | |||
63 | # Logging |
||
64 | ## levels = critical error warn notice info debug |
||
65 | ## groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_* |
||
66 | log.open_file = "log",(cat,(cfg.logs),"rtorrent.log") |
||
67 | log.add_output = "@RT_LOG_LEVEL@","log" |
||
68 | log.add_output = "rpc_events","log" |
||
69 | #log.execute = (cat,(cfg.logs),"execute.log") |
||
70 | #log.xmlrpc = (cat,(cfg.logs),"xmlrpc.log") |
||
71 | |||
72 | # Initialize plugins |
||
73 | execute2 = {sh,-c,/usr/bin/php83 /var/www/rutorrent/php/initplugins.php rtorrent &} |