    # File lib/chef/provider/service/windows.rb, line 103
      def restart_service
        begin
          if @new_resource.restart_command
            Chef::Log.debug "#{@new_resource} restarting service using the given restart_command"
            popen4(@new_resource.restart_command) do |pid, stdin, stdout, stderr|
              Chef::Log.debug stdout.readlines
            end
          else
            stop_service
            sleep 1
            start_service
          end
        rescue Exception => e
          raise Chef::Exceptions::Service, "Failed to start service #{@new_resource.service_name}: #{e.message}"
        end
      end