summary refs log tree commit diff
path: root/nixos/modules/services/torrent
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-09-11 01:16:52 +0300
committerNikolay Amiantov <ab@fmap.me>2015-09-11 01:32:21 +0300
commit0570ea21696c8337c9a501d07234b31db454355e (patch)
treebf6c8d5e9999e4cf92fd57d0ce2b535ad6294452 /nixos/modules/services/torrent
parent41386bfdc68defd5c30f1b0997aef5d719971d83 (diff)
downloadnixlib-0570ea21696c8337c9a501d07234b31db454355e.tar
nixlib-0570ea21696c8337c9a501d07234b31db454355e.tar.gz
nixlib-0570ea21696c8337c9a501d07234b31db454355e.tar.bz2
nixlib-0570ea21696c8337c9a501d07234b31db454355e.tar.lz
nixlib-0570ea21696c8337c9a501d07234b31db454355e.tar.xz
nixlib-0570ea21696c8337c9a501d07234b31db454355e.tar.zst
nixlib-0570ea21696c8337c9a501d07234b31db454355e.zip
nixos/deluge: restart daemon if it's stopped from GUI
Diffstat (limited to 'nixos/modules/services/torrent')
-rw-r--r--nixos/modules/services/torrent/deluge.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/torrent/deluge.nix b/nixos/modules/services/torrent/deluge.nix
index 00df4042d890..becd57055d41 100644
--- a/nixos/modules/services/torrent/deluge.nix
+++ b/nixos/modules/services/torrent/deluge.nix
@@ -36,6 +36,8 @@ in {
       wantedBy = [ "multi-user.target" ];
       path = [ pkgs.pythonPackages.deluge ];
       serviceConfig.ExecStart = "${pkgs.pythonPackages.deluge}/bin/deluged -d";
+      # To prevent "Quit & shutdown daemon" from working; we want systemd to manage it!
+      serviceConfig.Restart = "on-success";
       serviceConfig.User = "deluge";
       serviceConfig.Group = "deluge";
     };