I'm installing metricbeat as a Windows service. I'm not using the supplied powershell files but rather doing it via WinSVC in C/C++. This start up and runs fine. When I want to update the files I'm stopping the service, then copying the new files over and starting again.
The issue I'm seeing is that I can't overwrite metricbeat.exe for up to 30 seconds after requesting the service to stop. I'm just launching the service with the -c argument, metricbeat.yml is below:
- module: system
Is there something I'm missing or would it be expected to take this long before being fully shut down?