From 3f5c454142cfdc0a0963b17293bbc44c618e646e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Letterer?= <48132449+111andre111@users.noreply.github.com> Date: Thu, 8 Aug 2019 03:15:40 +0200 Subject: [PATCH] Added space after start= needed for start services using sc.exe under Windows (#13173) 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 5964b7371ce3761be388afd2d235f7382494e158) --- CHANGELOG.next.asciidoc | 7 +++++++ .../packaging/templates/windows/install-service.ps1.tmpl | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 4217338b7e22..055c5ae6def1 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -63,6 +63,13 @@ 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 leak in script processor when using Javascript functions in a processor chain. {pull}12600[12600] +- Add additional nil pointer checks to Docker client code to deal with vSphere Integrated Containers {pull}12628[12628] +- Fixed `json.add_error_key` property setting for delivering error messages from beat events {pull}11298[11298] +- Fix Central Management enroll under Windows {issue}12797[12797] {pull}12799[12799] +- ILM: Use GET instead of HEAD when checking for alias to expose detailed error message. {pull}12886[12886] +- Fix seccomp policy preventing some features to function properly on 32bit Linux systems. {issue}12990[12990] {pull}13008[13008] +- Fix install-service.ps1's ability to set Windows service's delay start configuration. {pull}13173[13173] *Auditbeat* diff --git a/dev-tools/packaging/templates/windows/install-service.ps1.tmpl b/dev-tools/packaging/templates/windows/install-service.ps1.tmpl index 4198ba0720b5..cab1373ef15f 100644 --- a/dev-tools/packaging/templates/windows/install-service.ps1.tmpl +++ b/dev-tools/packaging/templates/windows/install-service.ps1.tmpl @@ -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." }