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 09:06:03 +01:00 committed by GitHub
parent caffa8c560
commit 337c4cc7b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,7 @@ in
Group = "mediamtx";
SupplementaryGroups = lib.mkIf cfg.allowVideoAccess "video";
ExecStart = "${cfg.package}/bin/mediamtx /etc/mediamtx.yaml";
Restart = "on-failure";
};
};
};