From 6e450d6d0a159405a2ab24f64566f80fad348ca3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 16:47:09 +0200 Subject: Massage --- custom/lvm-snapshots.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index 29156988..04ab06f0 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix @@ -82,7 +82,7 @@ in { script = '' ( - flock -xn 9 || exit 1 + flock -xn 9 -E 4 || exit 1 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV} @@ -96,6 +96,8 @@ in { serviceConfig = with pkgs; { Type = "forking"; + RestartForceExitStatus = [ "4" ]; + RestartSec = "5min"; }; }) cfg.snapshots; -- cgit v1.2.3