Skip to content

Commit

Permalink
Cherry-pick #13173 to 7.3: Added space after start= needed for start …
Browse files Browse the repository at this point in the history
…services using sc.exe under Windows (#13194)

A space is required between an option and its value (for example, type= own. If the space is omitted, the operation will fail.

Documentation: https://docs.microsoft.com/de-de/windows-server/administration/windows-commands/sc-config
(cherry picked from commit 5964b73)
  • Loading branch information
andrewkroh authored Aug 13, 2019
1 parent f7ade62 commit edcca33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix of docker json parser for missing "log" jsonkey in docker container's log {issue}11464[11464]
- Fix `@timestamp` being duplicated in events if `@timestamp` is set in a
processor (or by any code utilizing `PutValue()` on a `beat.Event`).
- Fix install-service.ps1's ability to set Windows service's delay start configuration. {pull}13173[13173]

*Auditbeat*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ New-Service -name {{.BeatName}} `

# Attempt to set the service to delayed start using sc config.
Try {
Start-Process -FilePath sc.exe -ArgumentList 'config {{.BeatName}} start=delayed-auto'
Start-Process -FilePath sc.exe -ArgumentList 'config {{.BeatName}} start= delayed-auto'
}
Catch { Write-Host -f red "An error occured setting the service to delayed start." }

0 comments on commit edcca33

Please sign in to comment.