diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-05-03 13:28:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 13:28:09 +0200 |
commit | c88c954f8154cf83b2fc763ffc5c864505156c77 (patch) | |
tree | b929941b31d591756cd969406a6aa2a3bd0e9faa /nixos/modules | |
parent | d84e07befddcd0067ae4decef79977db7d7c183f (diff) | |
parent | 7666eadc69167dc1a49e7f1cf4cf3f237037db19 (diff) |
Merge pull request #308335 from bbigras/promtail
nixos/promtail: check-syntax in preStart
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/logging/promtail.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/logging/promtail.nix b/nixos/modules/services/logging/promtail.nix index a34bc07b6ab2f..9eccd34cef234 100644 --- a/nixos/modules/services/logging/promtail.nix +++ b/nixos/modules/services/logging/promtail.nix @@ -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; |