refactor systemd services
This commit is contained in:
parent
f892396ad8
commit
5f6b46008d
2 changed files with 5 additions and 4 deletions
|
@ -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" ];
|
||||
|
|
|
@ -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" \
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue