Selectively start/stop services

Aug 12, 2011 at 4:16 AM

I've been using this tool very frequently on my development environment, but i would like to have a new feature:

Allowing the user to selectively start/stop certain processes, sometimes i do not need to start sharepoint, but i still need SQL services to be running to do other developmental work.  

Jan 31, 2013 at 9:37 PM
Yes, it would be nice, if some exceptions for services to be stopped could be defined, or at least allow to restart single services directly from UI. I use my dev box for other web developments too and for sure W3SVC service has to run when doing this. Each time after shutting down the SharePoint services with this tool, I have to start services.msc and restart corresponding web service.
Mar 20, 2014 at 4:29 AM
I have add this feature.Code:
    private void lvwServices_DoubleClick(object sender, EventArgs e)
    {
        var service = ServiceManager.GetService(lvwServices.SelectedItems[0].Text);
        switch (service.Status)
        {
            case System.ServiceProcess.ServiceControllerStatus.Stopped:
                _serviceManager.StartService(service);
                break;
            case System.ServiceProcess.ServiceControllerStatus.Running:
                _serviceManager.StopService(service);
                break;
            case System.ServiceProcess.ServiceControllerStatus.Paused:
                service.Continue();
                break;
            default:
                break;
        }
    }