summarylogtreecommitdiffstats
path: root/aria2@.service
diff options
context:
space:
mode:
authorZhang Hua2024-03-26 20:01:19 +0800
committerZhang Hua2024-03-26 20:07:43 +0800
commitc532e85c97e1d64f2c1fc424a11cfbf5f677bf3b (patch)
tree5b566c520faa61e3c3d26925b34dc1de2594e63b /aria2@.service
parent14e85bad542ef69cb4ba6dabf993a5e039f6a31e (diff)
downloadaur-c532e85c97e1d64f2c1fc424a11cfbf5f677bf3b.tar.gz
Misc changes
1. Use Type=simple instead Type=fork Systemd seems to be happier with this 2. Remove tmpfiles.d and sysusers.d Use DynamicUser instead 3. Remove hardcoded arguments in service This should let user have more control 4. Adjust sandbox options in service 5. Move depends in package() So we do not need install aria2 and systemd when building 6. Update broken tracker link But users have to update it manually for installed files 7. aria2.target now runs after service and timer
Diffstat (limited to 'aria2@.service')
-rw-r--r--aria2@.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/aria2@.service b/aria2@.service
index 100535529416..cbde576d114d 100644
--- a/aria2@.service
+++ b/aria2@.service
@@ -1,13 +1,13 @@
[Unit]
-Description=Aria2c Daemon for %i
+Description=Aria2c Daemon for user %i
After=network-online.target
Wants=network-online.target
[Service]
-Type=forking
+Type=simple
User=%i
ExecStartPre=/usr/bin/update-aria2-tracker
-ExecStart=/usr/bin/aria2c --daemon=true
+ExecStart=/usr/bin/aria2c --daemon=false
ExecReload=/usr/bin/kill -HUP ${MAINPID}
[Install]