-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathsetpkgs.sh
More file actions
65 lines (61 loc) · 1.82 KB
/
Copy pathsetpkgs.sh
File metadata and controls
65 lines (61 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
ARIA2C=$1
SERVICE_CORES=${2:-}
CPU_LIMIT=${3:-20}
SABNZBDPLUS=$4
if [ -n "$SERVICE_CORES" ]; then
ARIA2_CMD="taskset -c $SERVICE_CORES $ARIA2C"
SAB_CMD="taskset -c $SERVICE_CORES cpulimit -l $CPU_LIMIT -- $SABNZBDPLUS"
else
ARIA2_CMD="$ARIA2C"
SAB_CMD="cpulimit -l $CPU_LIMIT -- $SABNZBDPLUS"
fi
tracker_list=$(curl -Ns https://cdn.jsdelivr.net/gh/ngosang/trackerslist@master/trackers_all.txt | awk '$0' | tr '\n\n' ',')
$ARIA2_CMD \
--daemon=true \
--rpc-listen-all=true \
--enable-rpc=true \
--rpc-max-request-size=1024M \
--max-concurrent-downloads=1000 \
--max-connection-per-server=16 \
--split=16 \
--min-split-size=32M \
--optimize-concurrent-downloads=true \
--continue=true \
--auto-file-renaming=true \
--allow-overwrite=true \
--force-save=false \
--content-disposition-default-utf8=true \
--user-agent="Wget/1.12" \
--http-accept-gzip=true \
--max-tries=20 \
--max-file-not-found=0 \
--check-certificate=false \
--bt-enable-lpd=true \
--bt-detach-seed-only=true \
--bt-remove-unselected-file=true \
--bt-max-peers=0 \
--bt-max-open-files=1000 \
--bt-request-peer-speed-limit=1M \
--seed-ratio=0 \
--peer-id-prefix="-qB5220-" \
--peer-agent="qBittorrent/5.2.2" \
--follow-torrent=mem \
--reuse-uri=true \
--socket-recv-buffer-size=16M \
--disable-ipv6=false \
--connect-timeout=30 \
--timeout=30 \
--retry-wait=5 \
--file-allocation=falloc \
--disk-cache=64M \
--check-integrity=true \
--max-upload-limit=1K \
--quiet=true \
--summary-interval=0 \
--save-session= \
--save-session-interval=0 \
--bt-tracker="[$tracker_list]"
if [ -n "$SABNZBDPLUS" ]; then
$SAB_CMD -f configs/sabnzbd/SABnzbd.ini -s :::8070 -b 0 -d -c -l 0 --console
fi