I have a .net service installed and launched by NSSM, sometimes the service can shutdown with an emergency code, it completely stops any actions, but status still remains "Running". If I install and launch service via SC, service stops successfully (status changed to "Stopped"), so seems NSSM can't catch shutdown from inside of service by some reason. Btw, default value of AppExit key not set to "Ignore".
Asked
Active
Viewed 308 times
1
-
We're going to need more information about your service. How is its entry point defined? Which framework are you in? Are you overriding OnStop() ? – Sotiris Panopoulos May 29 '20 at 17:50
-
4.7.2 framework, service inherited from ServiceBase and uses it's method Stop(). – Dmitriy Marov May 29 '20 at 18:28