1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/aria2/aria2.service
2016-03-19 06:14:20 +08:00

17 lines
396 B
Desktop File

[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