-
-
Save moalex/c44db73cf964e1350d5e31d267b13f3e to your computer and use it in GitHub Desktop.
Aria2c config files and init scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# place under ${HOME}/.aria2/ | |
# Daemonize, rpc and session save. | |
# The daemon is launched by the rpc query and | |
# stops when all downloads are completed. | |
continue | |
daemon=true | |
on-download-complete=exit | |
dir=/home/**youruser**/path/to/download/folder | |
save-session=/home/**youruser**/.aria2/session | |
input-file=/home/**youruser**/.aria2/session | |
max-concurrent-downloads=99999 | |
seed-ratio=0 | |
max-connection-per-server=4 | |
bt-save-metadata | |
rpc-save-upload-metadata | |
enable-rpc=true | |
rpc-listen-all=true | |
rpc-user=**youruser** | |
rpc-passwd=**yourpassword** | |
rpc-listen-port=**yourport** # should be same as in the upstart script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# place under ${HOME}/.init/aria2.conf | |
# Starts aria2c daemon when the port 1234 is accesed | |
description "aria2 startup script" | |
start on socket PROTO=inet PORT=1234 # use the port you want | |
exec /usr/bin/aria2c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment