C# – Start/Stop/Restart Services
The following method tries to start a service specified by a service name. Then it waits until the service is running or a timeout occurs. The following method tries to stop the specified service and it waits until the service is stopped or a timeout occurs. This method combinates both previous methods. It tries to…