diff options
author | Antoine Eiche <lewo@gandi.net> | 2023-07-26 17:22:22 +0200 |
---|---|---|
committer | Antoine Eiche <lewo@gandi.net> | 2023-07-26 17:22:22 +0200 |
commit | 8af1d49858d2ccf504bc33d066ba047795d43093 (patch) | |
tree | 0c0e153e7e38a249ec0a6c2c5cbbdff464903e09 | |
parent | 8dff9f64ecb309e362b59dc099c090ae4f633481 (diff) |
nixos/osquery: do not use the local database for osqueryi
Because the local database is used by the osquery deamon, running osqueri fails with: IO error: While lock file: /var/lib/osquery/osquery.db/LOCK: Resource temporarily unavailable
-rw-r--r-- | nixos/modules/services/monitoring/osquery.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/osquery.nix b/nixos/modules/services/monitoring/osquery.nix index 98524d0c700c8..4f6c2557a6417 100644 --- a/nixos/modules/services/monitoring/osquery.nix +++ b/nixos/modules/services/monitoring/osquery.nix @@ -21,7 +21,7 @@ let osqueryi = pkgs.runCommand "osqueryi" { nativeBuildInputs = [ pkgs.makeWrapper ]; } '' mkdir -p $out/bin makeWrapper ${pkgs.osquery}/bin/osqueryi $out/bin/osqueryi \ - --add-flags "--flagfile ${flagfile}" + --add-flags "--flagfile ${flagfile} --disable-database" ''; in { |