summarylogtreecommitdiffstats
path: root/aria2cd.service
diff options
context:
space:
mode:
authoryhfudev2015-06-09 12:35:51 -0400
committeryhfudev2015-06-09 12:35:51 -0400
commit871d529b3d16f2799d2d7ab5f3f22cea0c781edc (patch)
tree1726b211235a84c7f2aee6832a22ecbd0b3d998c /aria2cd.service
downloadaur-871d529b3d16f2799d2d7ab5f3f22cea0c781edc.tar.gz
Initial import
Diffstat (limited to 'aria2cd.service')
-rw-r--r--aria2cd.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/aria2cd.service b/aria2cd.service
new file mode 100644
index 00000000000..82fcdd070b4
--- /dev/null
+++ b/aria2cd.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=aria2c Service
+Requires=network.target
+After=dhcpcd.service
+
+[Service]
+Type=forking
+User=aria2c
+Group=aria2c
+WorkingDirectory=/var/share/aria2c
+EnvironmentFile=/etc/conf.d/aria2c-env.conf
+ExecStart=/usr/bin/aria2c -D --conf-path=${ARIA2C_CONF} --save-session-interval=180 --save-session=${ARIA2C_SESSION}
+ExecReload=/usr/bin/kill -HUP $MAINPID
+RestartSec=1min
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target