Skip to content

Commit

Permalink
Win: install APM Server in Program Files directory (#14905)
Browse files Browse the repository at this point in the history
* Win: install APM Server in Program Files dir
* update service name

Also fixes #15082
---------

Co-authored-by: kruskall <[email protected]>
(cherry picked from commit 0681721)
  • Loading branch information
inge4pres authored and mergify[bot] committed Jan 7, 2025
1 parent 57c0332 commit 92224e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/files/windows/install-service.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ $workdir = Split-Path $MyInvocation.MyCommand.Path

# Create the new service.
New-Service -name apm-server `
-displayName {{.BeatName | title}} `
-binaryPathName "`"$workdir\apm-server.exe`" --environment=windows_service -c `"$workdir\apm-server.yml`" --path.home `"$workdir`" --path.data `"$env:PROGRAMDATA\apm-server`" --path.logs `"$env:PROGRAMDATA\apm-server\logs`" -E logging.files.redirect_stderr=true"
-displayName apm-server`
-binaryPathName "`"$workdir\apm-server.exe`" --environment=windows_service -c `"$workdir\apm-server.yml`" --path.home `"$workdir`" --path.data `"$env:PROGRAMFILES\apm-server`" --path.logs `"$env:PROGRAMFILES\apm-server\logs`" -E logging.files.redirect_stderr=true"

# Attempt to set the service to delayed start using sc config.
Try {
Expand Down

0 comments on commit 92224e9

Please sign in to comment.