nixos/mediamtx: restart service on failure (#374588)

Co-authored-by: Masum Reza <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
Bouke van der Bijl
2025-01-18 13:36:03 +05:30
committed by GitHub
co-authored by Masum Reza
parent caffa8c560
commit 337c4cc7b0
@@ -66,6 +66,7 @@ in
Group = "mediamtx";
SupplementaryGroups = lib.mkIf cfg.allowVideoAccess "video";
ExecStart = "${cfg.package}/bin/mediamtx /etc/mediamtx.yaml";
Restart = "on-failure";
};
};
};