nixos/deluge: restart daemon if it's stopped from GUI
commit0570ea21696c8337c9a501d07234b31db454355e
authorNikolay Amiantov <ab@fmap.me>
dateFri 11 Sep 2015, 01:16 (11 years ago)
parent41386bf
nixos/modules/services/torrent/deluge.nix+2
@@ -36,6 +36,8 @@ in {
3636 wantedBy = [ "multi-user.target" ];
3737 path = [ pkgs.pythonPackages.deluge ];
3838 serviceConfig.ExecStart = "${pkgs.pythonPackages.deluge}/bin/deluged -d";
39+ # To prevent "Quit & shutdown daemon" from working; we want systemd to manage it!
40+ serviceConfig.Restart = "on-success";
3941 serviceConfig.User = "deluge";
4042 serviceConfig.Group = "deluge";
4143 };