| Bug #45546 | Bug&Feature request: start windows service, then execute what is needed. | ||
|---|---|---|---|
| Submitted: | 17 Jun 7:19 | Modified: | 17 Jun 21:43 |
| Reporter: | Roel Van de Paar | ||
| Status: | Verified | ||
| Category: | Server: Windows | Severity: | S2 (Serious) |
| Version: | OS: | Microsoft Windows | |
| Assigned to: | Target Version: | ||
| Triage: | Triaged: D5 (Feature request) | ||
[17 Jun 7:19]
Roel Van de Paar
[17 Jun 7:48]
Sveta Smirnova
Potentially can lead to same problem as in bug #41908
[17 Jun 21:43]
Valeriy Kravchuk
Windows should not let to start service that is already started/is in the process of starting. I think this is a reasonable feature request.
[12 Oct 4:02]
Roel Van de Paar
If the server is slow in shutting down, possibly the same issue may happen during
shutdown.
Workaround: use:
shell> SC INTERROGATE <service_name> | FIND "STATE"
To check if the service has successfully started/stopped. Example:
---------
C:\>NET START mysql5137
The mysql5137 service is starting.
The mysql5137 service was started successfully.
C:\>SC INTERROGATE mysql5137 | FIND "STATE"
STATE : 4 RUNNING
C:\>NET STOP mysql5137
The mysql5137 service is stopping.
The mysql5137 service was stopped successfully.
C:\>SC INTERROGATE mysql5137 | FIND "STATE"
C:\>
---------
