From 8ae43d70ff4b754a71fc581ea5a91bb8c9166cee Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 16 Apr 2021 22:50:17 +0300 Subject: [PATCH] conf: add aria2cd.service & aria2.conf (WIP) --- conf/aria2.conf | 22 ++++++++++++++++++++++ conf/systemd/user/aria2cd.service | 15 +++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 conf/aria2.conf create mode 100644 conf/systemd/user/aria2cd.service diff --git a/conf/aria2.conf b/conf/aria2.conf new file mode 100644 index 00000000..61e7983d --- /dev/null +++ b/conf/aria2.conf @@ -0,0 +1,22 @@ +# ~/.config/aria2 +# Heavily took from https://wiki.archlinux.org/index.php/Aria2#Example_aria2.daemon + +# TODO: How to continue downloads across restart? How to download into +# ~/Downloads without an absolute path? + + +continue +daemon=true +#dir=$HOME/Downloads +file-allocation=falloc +#log-level=warn +max-connection-per-server=4 +max-concurrent-downloads=3 +max-overall-download-limit=0 +min-split-size=5M +enable-http-pipelining=true + +enable-rpc=true +#rpc-listen-all=true +#rpc-user=rpcuser +#rpc-passwd=rpcpass diff --git a/conf/systemd/user/aria2cd.service b/conf/systemd/user/aria2cd.service new file mode 100644 index 00000000..68c90111 --- /dev/null +++ b/conf/systemd/user/aria2cd.service @@ -0,0 +1,15 @@ +# https://wiki.archlinux.org/index.php/Aria2#Using_Aria2_as_a_Daemon +# Needs manually creating config file +# TODO: How to continue downloads across restart? How to download into +# ~/Downloads without an absolute path? +[Unit] +Description=Aria2 Daemon + +[Service] +Type=forking +ExecStart=/usr/bin/aria2c +# Arch Wiki had this, but default is $XDG_CONFIG_HOME/aria2/aria2.conf +#--conf-path=/path/to/conf + +[Install] +WantedBy=default.target