aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aria2/.config/aria2/aria2.conf2
-rw-r--r--services/aria2d.service9
2 files changed, 11 insertions, 0 deletions
diff --git a/aria2/.config/aria2/aria2.conf b/aria2/.config/aria2/aria2.conf
new file mode 100644
index 0000000..24a7008
--- /dev/null
+++ b/aria2/.config/aria2/aria2.conf
@@ -0,0 +1,2 @@
+dir=/home/neodarz/Downloads
+rpc-secret=8NuPEM8g6O1vBf6uLyWrcdGFKkI-vBTS
diff --git a/services/aria2d.service b/services/aria2d.service
new file mode 100644
index 0000000..4980e3a
--- /dev/null
+++ b/services/aria2d.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Aria2 Service
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all --save-session %h/.config/aria2/session.lock --input-file %h/.config/aria2/session.lock --conf-path=%h/.config/aria2/aria2.conf
+
+[Install]
+WantedBy=multi-user.target