about summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-12-06 23:16:44 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-12-06 23:17:29 +0100
commitc8e61256e6f6831bf5621d4b9ea74567063ec745 (patch)
tree69ee7eefa802386139f481868dc07ced1fc4a236 /nixos/modules/services/databases
parent35e4c570a6da96e455107e789e7726a3ca542bf0 (diff)
downloadnixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar.gz
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar.bz2
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar.lz
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar.xz
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.tar.zst
nixlib-c8e61256e6f6831bf5621d4b9ea74567063ec745.zip
nixos/influxdb: restart on failure
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/influxdb.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/influxdb.nix b/nixos/modules/services/databases/influxdb.nix
index 34b4139e7c58..adb212ab08d0 100644
--- a/nixos/modules/services/databases/influxdb.nix
+++ b/nixos/modules/services/databases/influxdb.nix
@@ -161,6 +161,7 @@ in
         ExecStart = ''${cfg.package}/bin/influxd -config "${configFile}"'';
         User = cfg.user;
         Group = cfg.group;
+        Restart = "on-failure";
       };
       postStart =
         let