Details
Description
On Windows, services can have hierarchical relationships of dependency. A common one is the SQLAGENT service will often be dependent on the MSSQLSERVER service.
When this happens, attempts to restart the MSSQLSERVER service will result in an error that it has a dependent service, the agent service. To overcome this obstacle, you can pass the force parameter to the Restart or Stop service cmdlets, and OS will heed your command and restart the service.
The problem is that the current implementation of the Bolt task provides no parameter to pass the parameter, and so it becomes impossible to restart a service like this unless you know ahead of time all of the services that depend on it, and manually go stop them first, and then restart the one you are actually interested in, and then go back and restart the ones you stopped earlier.
The Bolt task should instead simply take a 'force' parameter to allow a user to restart the service directly.
Attachments
Issue Links
- relates to
-
MODULES-6904 sqlserver : Server restart should account for running Server Agent service
-
- Closed
-