From 2a1de3e7282ede289ef81a47221eb8900b576c64 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 19 Mar 2016 06:14:20 +0800 Subject: [PATCH] add aria2.service --- aria2/aria2.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 aria2/aria2.service diff --git a/aria2/aria2.service b/aria2/aria2.service new file mode 100644 index 0000000..2eb6c8f --- /dev/null +++ b/aria2/aria2.service @@ -0,0 +1,16 @@ +[Unit] +Description=High speed download utility +After=network.target + +[Service] +User=pi +Environment=DIR=/home/pi/Downloads +ExecStartPre=/bin/mkdir -p ${DIR} +ExecStart=/usr/bin/aria2c --enable-rpc \ + --rpc-listen-all=true \ + --rpc-allow-origin-all \ + --dir ${DIR} +Restart=on-failure + +[Install] +WantedBy=multi-user.target