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:
parent
29681cb1a4
commit
2a1de3e728
16
aria2/aria2.service
Normal file
16
aria2/aria2.service
Normal 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
|
Loading…
Reference in New Issue
Block a user