Merge pull request #308335 from bbigras/promtail

nixos/promtail: check-syntax in preStart

authored by Pol Dellaiera and committed by GitHub c88c954f d84e07be

+4
+4
nixos/modules/services/logging/promtail.nix
··· 41 wantedBy = [ "multi-user.target" ]; 42 stopIfChanged = false; 43 44 serviceConfig = { 45 Restart = "on-failure"; 46 TimeoutStopSec = 10;
··· 41 wantedBy = [ "multi-user.target" ]; 42 stopIfChanged = false; 43 44 + preStart = '' 45 + ${lib.getExe pkgs.promtail} -config.file=${prettyJSON cfg.configuration} -check-syntax 46 + ''; 47 + 48 serviceConfig = { 49 Restart = "on-failure"; 50 TimeoutStopSec = 10;