nixos/deluge: restart daemon if it's stopped from GUI

This commit is contained in:
Nikolay Amiantov 2015-09-11 01:16:52 +03:00
parent 41386bfdc6
commit 0570ea2169

View file

@ -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";
};