blob: c9f0760d3c3276b3b9a8bb368432d32ead532824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
[Unit]
Description=System Wide Aria2c Daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=true
User=aria2cd
# Arguments here will override config file.
ExecStart=/usr/bin/aria2c --conf-path=/etc/aria2cd/aria2.conf \
--daemon=false --enable-rpc=true \
--dir=/var/lib/aria2cd/Downloads \
--save-session=/var/lib/aria2cd/aria2.session \
--input-file=/var/lib/aria2cd/aria2.session \
--dht-file-path=/var/lib/aria2cd/aria2.dht \
--dht-file-path6=/var/lib/aria2cd/aria2.dht6 \
--save-cookies=/var/lib/aria2cd/aria2.cookies \
--load-cookies=/var/lib/aria2cd/aria2.cookies \
--log=/var/log/aria2cd/aria2cd.log
# Sandboxing
ProtectSystem=strict
StateDirectory=aria2cd
LogsDirectory=aria2cd
ConfigurationDirectory=aria2cd
ReadOnlyPaths=/etc/aria2cd
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectHome=yes
ProtectControlGroups=yes
NoNewPrivileges=yes
[Install]
WantedBy=aria2.target
WantedBy=multi-user.target
|