Skip to content

Commit

Permalink
Osquerybeat: Fix restart flags after previously bad config (#28827) (#…
Browse files Browse the repository at this point in the history
…28829)

(cherry picked from commit 8d8e387)

Co-authored-by: Aleksandr Maus <[email protected]>
mergify[bot] and aleksmaus authored Nov 5, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8fbebba commit bf9ba6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/osquerybeat/beater/osquery_runner.go
Original file line number Diff line number Diff line change
@@ -68,11 +68,11 @@ func (r *osqueryRunner) Run(parentCtx context.Context, runfn osqueryRunFunc) err

// Wait until osquery runner exists
wg.Wait()

// Set the flags to use
flags = newFlags
}

// Set the flags to use
flags = newFlags

// Start osqueryd if not running
if cn == nil {
r.log.Info("Start osqueryd")

0 comments on commit bf9ba6e

Please sign in to comment.