Merge pull request #308335 from bbigras/promtail

nixos/promtail: check-syntax in preStart
This commit is contained in:
Pol Dellaiera 2024-05-03 13:28:09 +02:00 committed by GitHub
commit c88c954f81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,10 @@ in {
wantedBy = [ "multi-user.target" ];
stopIfChanged = false;
preStart = ''
${lib.getExe pkgs.promtail} -config.file=${prettyJSON cfg.configuration} -check-syntax
'';
serviceConfig = {
Restart = "on-failure";
TimeoutStopSec = 10;