diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-09-11 01:16:52 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2015-09-11 01:32:21 +0300 |
commit | 0570ea21696c8337c9a501d07234b31db454355e (patch) | |
tree | bf6c8d5e9999e4cf92fd57d0ce2b535ad6294452 /nixos/modules/services/torrent/deluge.nix | |
parent | 41386bfdc68defd5c30f1b0997aef5d719971d83 (diff) | |
download | nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar.gz nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar.bz2 nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar.lz nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar.xz nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.tar.zst nixpkgs-0570ea21696c8337c9a501d07234b31db454355e.zip |
nixos/deluge: restart daemon if it's stopped from GUI
Diffstat (limited to 'nixos/modules/services/torrent/deluge.nix')
-rw-r--r-- | nixos/modules/services/torrent/deluge.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/torrent/deluge.nix b/nixos/modules/services/torrent/deluge.nix index 00df4042d89..becd57055d4 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"; }; |