From a8d84f85f6dad7865cdd8f49f20a5973e6ab705f Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 31 Mar 2024 03:35:09 +0530 Subject: [PATCH] refactor transmission-daemon --- home/services/transmission.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/services/transmission.nix b/home/services/transmission.nix index aab3605..1207fdb 100644 --- a/home/services/transmission.nix +++ b/home/services/transmission.nix @@ -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"; }; }; };