From a1bc0ae727c8136711669781bdade8ddbe46f497 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Tue, 18 Nov 2025 21:47:11 -0500 Subject: [PATCH] Created systemd user unit service file for Aria2 --- .../templates/systemd/user/aria2cd.service.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/bootstrap/templates/systemd/user/aria2cd.service.j2 diff --git a/roles/bootstrap/templates/systemd/user/aria2cd.service.j2 b/roles/bootstrap/templates/systemd/user/aria2cd.service.j2 new file mode 100644 index 0000000..18db006 --- /dev/null +++ b/roles/bootstrap/templates/systemd/user/aria2cd.service.j2 @@ -0,0 +1,13 @@ +[Unit] +Description=aria2 Daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/aria2c --conf-path={{ ansible_facts['user_dir'] }}/.config/aria2/aria2.conf +ExecReload=/usr/bin/kill -HUP $MAINPID +RestartSec=1min +Restart=on-failure + +[Install] +WantedBy=default.target \ No newline at end of file