nixos/promtail: check-syntax in preStart

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
This commit is contained in:
Bruno Bigras 2024-04-27 00:43:13 -04:00
parent a09eb28a49
commit 7666eadc69

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;