refactor transmission-daemon

This commit is contained in:
Adithya 2024-03-31 03:35:09 +05:30
parent 54173575ff
commit a8d84f85f6
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -14,13 +14,15 @@
WantedBy = [ "default.target" ];
};
Service = {
Type = "simple";
Type = "notify";
ExecStart = ''
${transmission-daemon} -f --encryption-preferred --portmap --dht --lpd --utp --peerport 41414 --port 9092 \
${transmission-daemon} -f --log-level=info --encryption-preferred --portmap --dht --lpd --utp --peerport 41414 --port 9092 \
-c "${torrents-dir}/init" \
--incomplete-dir "${torrents-dir}/.incomplete" \
--download-dir "${torrents-dir}/downloads" \
'';
ExecStop="kill -s STOP $MAINPID";
ExecReload="kill -s HUP $MAINPID";
};
};
};