summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/lvm-snapshots.nix4
1 files changed, 3 insertions, 1 deletions
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 {
82 82
83 script = '' 83 script = ''
84 ( 84 (
85 flock -xn 9 || exit 1 85 flock -xn 9 -E 4 || exit 1
86 86
87 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV} 87 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV}
88 88
@@ -96,6 +96,8 @@ in {
96 96
97 serviceConfig = with pkgs; { 97 serviceConfig = with pkgs; {
98 Type = "forking"; 98 Type = "forking";
99 RestartForceExitStatus = [ "4" ];
100 RestartSec = "5min";
99 }; 101 };
100 }) cfg.snapshots; 102 }) cfg.snapshots;
101 103