satnogs-wut/wut-aria-daemon

37 lines
789 B
Bash
Executable File

#!/bin/bash
set -x
mkdir -p ~/log /srv/dl
ulimit -n 8192
aria2c \
--daemon=true \
--enable-rpc=true \
--dir=/srv/dl \
--rpc-listen-port=4800 \
--rpc-listen-all=false \
--rpc-secret=`cat /home/jebba/.aria-secret` \
--disable-ipv6=true \
--disk-cache=128M \
--file-allocation=falloc \
--log-level=notice \
--log=/home/jebba/log/aria.log \
--bt-max-open-files=1000 \
--bt-max-peers=1000 \
--continue=true \
--follow-torrent=mem \
--rpc-save-upload-metadata=false \
--max-concurrent-downloads=100 \
--bt-max-open-files=50000 \
--bt-max-peers=0 \
--allow-overwrite=true \
--max-download-result=0 \
--enable-mmap=true
exit
--deferred-input=true \
--enable-mmap