diff options
author | BjornMelgaard <melgaardbjorn@gmail.com> | 2018-04-10 21:06:38 +0300 |
---|---|---|
committer | BjornMelgaard <melgaardbjorn@gmail.com> | 2018-04-10 21:19:13 +0300 |
commit | 46c270c5a6f9d10c77502b0824cfa42eff6f61c3 (patch) | |
tree | 57904ee20cec71d2b4a8e97e790edfb15a310f2b | |
parent | def5645ba170f75a5d205df2440af010570f7c82 (diff) | |
download | nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar.gz nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar.bz2 nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar.lz nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar.xz nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.tar.zst nixpkgs-46c270c5a6f9d10c77502b0824cfa42eff6f61c3.zip |
safeeyes: restart only on failure
-rw-r--r-- | nixos/modules/services/misc/safeeyes.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/safeeyes.nix b/nixos/modules/services/misc/safeeyes.nix index a1d304d290f..1a33971d922 100644 --- a/nixos/modules/services/misc/safeeyes.nix +++ b/nixos/modules/services/misc/safeeyes.nix @@ -39,8 +39,10 @@ in ExecStart = '' ${pkgs.safeeyes}/bin/safeeyes ''; + Restart = "on-failure"; RestartSec = 3; - Restart = "always"; + StartLimitInterval = 350; + StartLimitBurst = 10; }; }; |