refactor systemd services

This commit is contained in:
Adithya 2024-03-29 11:36:56 +05:30
parent f892396ad8
commit 5f6b46008d
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 5 additions and 4 deletions

View file

@ -7,7 +7,7 @@
ariang = {
Unit = {
Description = "AriaNg: Web frontend for aria2c";
After = [ "network.target" "aria2c.service" ];
After = [ "aria2c.service" ];
};
Install = {
WantedBy = [ "default.target" ];
@ -23,7 +23,6 @@
Unit = {
Description = "Aria2c Download Manager";
Documentation = [ "man:aria2c(1)" ];
After = [ "network.target" ];
};
Install = {
WantedBy = [ "default.target" "ariang.service" ];

View file

@ -9,7 +9,6 @@
Unit = {
Description = "Transmission Daemon";
Documentation = [ "man:transmission-daemon(1)" ];
After = [ "network.target" ];
};
Install = {
WantedBy = [ "default.target" ];
@ -17,7 +16,10 @@
Service = {
Type = "simple";
ExecStart = ''
${transmission-daemon} -f -c "${torrents-dir}/init" --incomplete-dir "${torrents-dir}/.incomplete" --download-dir "${torrents-dir}/downloads" --encryption-preferred --portmap --dht --lpd --utp --peerport 51414 --port 9092
${transmission-daemon} -f --encryption-preferred --portmap --dht --lpd --utp --peerport 51414 --port 9092 \
-c "${torrents-dir}/init" \
--incomplete-dir "${torrents-dir}/.incomplete" \
--download-dir "${torrents-dir}/downloads" \
'';
};
};