1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

add aria2.service

This commit is contained in:
kev 2016-03-19 06:14:20 +08:00
parent 29681cb1a4
commit 2a1de3e728

16
aria2/aria2.service Normal file
View File

@ -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