diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2024-04-27 00:43:13 -0400 |
---|---|---|
committer | Bruno Bigras <bigras.bruno@gmail.com> | 2024-05-01 21:18:28 -0400 |
commit | 7666eadc69167dc1a49e7f1cf4cf3f237037db19 (patch) | |
tree | f402871aceff4cf4e218e66d54752f5db7cc38cc /nixos/modules/services | |
parent | a09eb28a49455bb870a3597e57d25c474a83bd3a (diff) |
nixos/promtail: check-syntax in preStart
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Diffstat (limited to 'nixos/modules/services')
-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; |