From c343d619a78b4465280996bda7f09827d82f5edf Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Tue, 16 Jan 2024 00:54:55 +0100 Subject: [PATCH] manager: make opensm service self-healing --- machines/manager/rdma.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machines/manager/rdma.nix b/machines/manager/rdma.nix index 3bcb409..a9ac2b8 100644 --- a/machines/manager/rdma.nix +++ b/machines/manager/rdma.nix @@ -12,6 +12,9 @@ with lib; serviceConfig = { Type = "simple"; ExecStart = "${pkgs.opensm}/bin/opensm --guid '0x0002c9030052188b'"; + + Restart = "on-failure"; + RestartSec = "5s"; }; wantedBy = [ "network-online.target" ];