mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
17 lines
396 B
SYSTEMD
17 lines
396 B
SYSTEMD
|
[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
|