Skip to content

Instantly share code, notes, and snippets.

@moalex
Forked from dinigo/aria2.conf
Created January 16, 2022 14:26
Show Gist options
  • Save moalex/c44db73cf964e1350d5e31d267b13f3e to your computer and use it in GitHub Desktop.
Save moalex/c44db73cf964e1350d5e31d267b13f3e to your computer and use it in GitHub Desktop.
Aria2c config files and init scripts
# 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
# 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