nixos/mediamtx: restart service on failure (#374588)
Co-authored-by: Masum Reza <50095635+JohnRTitor@users.noreply.github.com>
Bouke van der Bijl 11 months ago 337c4cc7 caffa8c5
··· 66 66 Group = "mediamtx"; 67 67 SupplementaryGroups = lib.mkIf cfg.allowVideoAccess "video"; 68 68 ExecStart = "${cfg.package}/bin/mediamtx /etc/mediamtx.yaml"; 69 69 + Restart = "on-failure"; 69 70 }; 70 71 }; 71 72 };