Skip to content

Improve service start stop on install ps1 #4708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

pjanotti
Copy link
Contributor

Description:
Better leverage the Powershell Service cmdlets to reduce code and to not stop the service if it didn't start in the given starting timeout (there is no point: if the service is taking long to start, stopping it will just ensure that it will start from zero again).

The Service-Start returns before the service is actually running but the code can leverage the ServiceController returned by it (when using -PassThru) to wait for the status to reach the desired state.
@pjanotti pjanotti requested review from a team as code owners April 22, 2024 14:59
@pjanotti pjanotti merged commit 4bf5e27 into signalfx:main Apr 23, 2024
@pjanotti pjanotti deleted the improve-service-start-stop-on-install-ps1 branch April 23, 2024 15:33
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants