Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.26 KB | None | 0 0
  1. #
  2. #
  3. # The Seedbox From Scratch Script
  4. # By Notos ---> https://github.com/Notos/
  5. #
  6. #
  7. ######################################################################
  8. #
  9. # Copyright (c) 2013 Notos (https://github.com/Notos/)
  10. #
  11. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  12. #
  13. # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  14. #
  15. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. #
  17. # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
  18. #
  19. ######################################################################
  20. #
  21. #
  22. #
  23. # this is an example resource file for rtorrent
  24. # copy to /home/$NEWUSER1/.rtorrent.rc and enable/modify the options as needed
  25. # remember to uncomment the options you wish to enable
  26. #
  27. # based on original .rtorrent.rc file from The libTorrent and rTorrent Project
  28. # this assumes the following directory structure:
  29. #
  30. # /torrents/downloading - temporary location for torrents while downloading (see "directory")
  31. # /torrents/complete - torrents are moved here when complete (see "on_finished")
  32. # /torrents/torrentfiles/auto - the "autoload" directory for rtorrent to use
  33. # rtorrent will automatically load .torrents placed here. (see "schedule = watch_directory")
  34. # /torrents/downloading/rtorrent.session - for storing rtorrent session information
  35. #
  36.  
  37.  
  38. # Downloads Settings
  39. #
  40. # maximum number of simultaneous uploads per torrent
  41. # throttle.max_uploads.set = 30
  42. max_uploads = 30
  43.  
  44. # maximum and minimum number of peers to connect to per torrent
  45. # throttle.min_peers.normal.set = 40
  46. # throttle.max_peers.normal.set = 100
  47. min_peers = 40
  48. max_peers = 100
  49.  
  50. # same as above but for seeding completed torrents (-1 = same as downloading)
  51. # throttle.min_peers.seed.set = 25
  52. # throttle.max_peers.seed.set = 60
  53. min_peers_seed = 25
  54. max_peers_seed = 60
  55.  
  56. # tracker_numwant = -1
  57. trackers.numwant.set = -1
  58.  
  59. # check hash for finished torrents. might be useful until the bug is
  60. # fixed that causes lack of diskspace not to be properly reported
  61. # pieces.hash.on_completion.set = yes
  62. check_hash = yes
  63.  
  64. # default directory to save the downloaded torrents
  65. # directory.default.set = /home/user1/downloads
  66. directory = /home/user1/downloads/manual
  67.  
  68. # default session directory. make sure you dont run multiple instances
  69. # of rtorrent using the same session directory
  70. # perhaps using a relative path?
  71. # session.path.set = /home/user1/downloads/.session
  72. session = /home/user1/downloads/.session
  73.  
  74.  
  75. # Connection Settings
  76. #
  77. # port range to use for listening
  78. # network.port_range.set = 51103-51103
  79. port_range = 51103-51103
  80.  
  81. # start opening ports at a random position within the port range
  82. # network.port_random.set = yes
  83. port_random = yes
  84.  
  85. # global upload and download rate in KiB. "0" for unlimited
  86. # throttle.global_up.max_rate.set_kb = 0
  87. # throttle.global_down.max_rate.set_kb = 0
  88. upload_rate = 0
  89. download_rate = 0
  90.  
  91. # max mapped memory
  92. # nb does not refer to physical memory
  93. # max_memory_usage = 3500M
  94. pieces.memory.max.set = 3500M
  95.  
  96. # max number of files to keep open simultaneously
  97. # max_open_files = 192
  98. network.max_open_files.set = 192
  99.  
  100. # max_open_http = 32
  101. network.http.max_open.set = 32
  102.  
  103.  
  104. # BitTorrent Settings
  105. #
  106. # enable DHT support for trackerless torrents or when all trackers are down
  107. # may be set to "disable" (completely disable DHT), "off" (do not start DHT),
  108. # "auto" (start and stop DHT as needed), or "on" (start DHT immediately)
  109. # the default is "off". for DHT to work, a session directory must be defined
  110. #
  111. # dht.mode.set = disable
  112. dht = disable
  113.  
  114. # UDP port to use for DHT.
  115. #
  116. # dht_port = 6881
  117. # dht.port.set = 6881
  118.  
  119. # enable peer exchange (for torrents not marked private)
  120. # protocol.pex.set = no
  121. peer_exchange = no
  122.  
  123. # the IP address reported to the tracker
  124. # network.local_address.set = rakshasa.no
  125. # network.local_address.set = 127.0.0.1
  126. # ip = rakshasa.no
  127. # ip = 127.0.0.1
  128.  
  129. # schedule syntax: id,start,interval,command
  130. # call cmd every interval seconds, starting from start. an interval of zero calls the task once
  131. # while a start of zero calls it immediately. start and interval may optionally use a time format
  132. # dd:hh:mm:ss e.g. to start a task every day at 18:00, use 18:00:00,24:00:00.
  133. # commands: stop_untied =, close_untied =, remove_untied =
  134. # stop, close or remove the torrents that are tied to filenames that have been deleted
  135.  
  136. # watch a directory for new torrents, and stop those that have been deleted
  137.  
  138. system.file_allocate.set = yes
  139. schedule = low_diskspace,5,5,close_low_diskspace=500M
  140.  
  141. # stop torrents when reaching upload ratio in percent,
  142. # when also reaching total upload in bytes, or when
  143. # reaching final upload ratio in percent
  144. # example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
  145. # schedule = ratio,60,60,stop_on_ratio=200,200M,2000
  146.  
  147. # load = file, load_verbose = file, load_start = file, load_start_verbose = file
  148. # load and possibly start a file, or possibly multiple files by using the wild-card "*"
  149. # this is meant for use with schedule, though ensure that the start is non-zero
  150. # the loaded file will be tied to the filename provided.
  151.  
  152. # when the torrent finishes, it executes "mv -n <base_path> /home/$NEWUSER1/Download/"
  153. # and then sets the destination directory to "/home/$NEWUSER1/Download/". (0.7.7+)
  154. # on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/home/user1/downloads/complete/ ;d.set_directory=/home/user1/downloads/complete/"
  155.  
  156. # network.scgi.open_port = 127.0.0.1:51102
  157. scgi_port = 127.0.0.1:51102
  158.  
  159. # alternative calls to bind and IP that should handle dynamic IPs
  160. # schedule = ip_tick,0,1800,ip=rakshasa
  161. # schedule = bind_tick,0,1800,bind=rakshasa
  162.  
  163. # encryption options, set to none (default) or any combination of the following:
  164. # allow_incoming, try_outgoing,require,require_RC4,enable_retry,pref er_plaintext
  165. #
  166. # the example value allows incoming encrypted connections, starts unencrypted
  167. # outgoing connections but retries with encryption if they fail, preferring
  168. # plaintext to RC4 encryption after the encrypted handshake
  169. #
  170. # protocol.encryption.set =
  171. encryption = allow_incoming,enable_retry,prefer_plaintext
  172.  
  173.  
  174. # Advanced Settings
  175. #
  176. # do not modify the following parameters unless you know what youre doing
  177. #
  178.  
  179. # example of scheduling commands: Switch between two ips every 5 seconds
  180. # schedule = "ip_tick1,5,10,ip=torretta"
  181. # schedule = "ip_tick2,10,10,ip=lampedusa"
  182.  
  183. # remove a scheduled event
  184. # schedule_remove = "ip_tick1"
  185.  
  186. # hash read-ahead controls how many MB to request the kernel to read ahead ahead
  187. # if the value is too low the disk may not be fully utilized,
  188. # while if too high the kernel might not be able to keep the read pages
  189. # in memory thus end up trashing.
  190. # hash_read_ahead = 8
  191. # system.hash.read_ahead.set = 8
  192.  
  193. # interval between attempts to check the hash, in milliseconds
  194. # hash_interval = 50
  195. # system.hash.interval.set = 50
  196.  
  197. # number of attempts to check the hash while using the mincore status, before forcing
  198. # overworked systems might need lower values to get a decent hash checking rate
  199. # hash_max_tries = 3
  200. # system.hash.max_tries.set = 3
  201.  
  202. # SSL certificate name
  203. # http_cacert =
  204. # SSL certificate path
  205. # http_capath =
  206.  
  207. # throttle.max_downloads.div.set =
  208. # max_downloads_div =
  209.  
  210. # throttle.max_uploads.div.set =
  211. # max_uploads_div =
  212.  
  213. system.file.max_size.set = -1
  214.  
  215. # preload type 0 = Off, 1 = madvise, 2 = direct paging
  216. pieces.preload.type.set = 1
  217. pieces.preload.min_size.set = 262144
  218. pieces.preload.min_rate.set = 5120
  219. network.send_buffer.size.set = 1M
  220. network.receive_buffer.size.set = 131072
  221.  
  222. pieces.sync.always_safe.set = no
  223. pieces.sync.timeout.set = 600
  224. pieces.sync.timeout_safe.set = 900
  225.  
  226. # scgi_dont_route =
  227. # network.scgi.dont_route.set =
  228.  
  229. # session.path.set =
  230. session.name.set =
  231. session.use_lock.set = yes
  232. session.on_completion.set = yes
  233.  
  234. system.file.split_size.set = -1
  235. system.file.split_suffix.set = .part
  236.  
  237. # set whether the client should try to connect to UDP trackers
  238. # use_udp_trackers = yes
  239. trackers.use_udp.set = yes
  240. use_udp_trackers = yes
  241.  
  242. # use a http proxy. [url] ;an empty string disables this setting
  243. # http_proxy =
  244. # network.http.proxy_address.set =
  245.  
  246. # The IP address the listening socket and outgoing connections is bound to
  247. # network.bind_address.set = rakshasa.no
  248. # network.bind_address.set = 127.0.0.1
  249. # bind = rakshasa.no
  250. # bind = 127.0.0.1
  251.  
  252. # number of sockets to simultaneously keep open
  253. # max_open_sockets = 65023
  254. # network.max_open_sockets.set = 65023
  255.  
  256. # set the umask applied to all files created by rtorrent
  257. # system.umask.set =
  258.  
  259. # alternate keyboard mappings
  260. # qwerty | azerty | qwertz | dvorak
  261. # key_layout = dvorak
  262. # keys.layout.set = dvorak
  263.  
  264. ################ If you need log, uncomment (remove ######) from all lines below
  265. ######
  266. ######log.open_file = "rtorrent", ~/log/rtorrent.log
  267. ######log.open_file = "tracker", ~/log/tracker.log
  268. ######log.open_file = "storage", ~/log/storage.log
  269. ######
  270. ######log.add_output = "info", "rtorrent"
  271. ######log.add_output = "critical", "rtorrent"
  272. ######log.add_output = "error", "rtorrent"
  273. ######log.add_output = "warn", "rtorrent"
  274. ######log.add_output = "notice", "rtorrent"
  275. ######log.add_output = "debug", "rtorrent"
  276. ######
  277. ######log.add_output = "dht_debug", "tracker"
  278. ######log.add_output = "tracker_debug", "tracker"
  279. ######
  280. ######log.add_output = "storage_debug", "storage"
  281. ######
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement