Template: Restart service to let instance changes take effect #8415
andreasjordan
started this conversation in
Contributors
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some changes of instance settings need a service restart to take effect. But this should not be done without explicit request by the user. Therefore a switch like -Force or -RestartService should be used. To restart the dependent services only if needed, the command Restart-DbaService should be used.
Here is a code template:
Commands that already use Restart-DbaService, but are not aligned with this template:
Commands that use Stop-DbaService and Start-DbaService and should be changed:
Feedback to the proposed code is very welcome.
Beta Was this translation helpful? Give feedback.
All reactions