Jamesits / SvcGuest

Install any executable as a Windows service. (systemd compatible config!)
Mozilla Public License 2.0
49 stars 2 forks source link

Failed to stop service. System.Management.ManagementException #3

Closed Jamesits closed 5 years ago

Jamesits commented 5 years ago

Occurred to me once while Windows is stopping the service since child process died:

Failed to stop service. System.Management.ManagementException: Shutting down 
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
   at SvcGuest.ProgramWrappers.ProgramWrapper.GetChildProcessIds(Int32 processId)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender, EventArgs e)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender, EventArgs e)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender...