I have installed openfire service on a system which is Windows 2012 R2 Server 64 bit.
In order to stop the service we have a batch file which is used to stop the service.
Below is the piece of code which stops the service:-
for /f %%i in (‘wmic process where “(ParentProcessId=%NS_PID%)” get ProcessId ^| more +1’) do (
-
for /f %%a in ('wmic process where "(ParentProcessId=%%i)" get ProcessId ^| more +1') do (*
_ echo %%a|findstr “[1][1-9][0-9]$ [2][0-9]$ ^0$”>nul && TASKKILL /F /PID %%a || rem_
-
)*
)
where NS_PID is the process id for the openfire service.
Whenever I stop the service I am getting below logs in the Event Viewer:-
Faulting application name: openfireService.exe, version: 1.0.10.0, time stamp: 0x4f460074
Faulting module name: ntdll.dll, version: 6.3.9600.18233, time stamp: 0x56bb4e1d
Exception code: 0xc0000005
Fault offset: 0x00041eef
Faulting process id: 0x99c
Faulting application start time: 0x01d1ef4ddda01043
Faulting application path: C:\XX\openfire\ns\bin\openfireService.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 38c6351a-5b41-11e6-8129-00155d7f011e
**
Though the service stops, but this error message is confusing. Attached are the images of the error logs and accompanying app crash message.