Can a TIM log indicate if it is a restart, crash, or being non-responsive?

Document ID : KB000015739
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

  This was created at the Suggestion of APM SWAT and Sustaining Engineering Staff.  A good general reference on signals can be found at https://en.wikipedia.org/wiki/Signal_(IPC)

Question:

   Is there a way to tell easily from the TIM logs if it crashed or not? 

Environment:
All Supported APM TIM/MTP/VMTP Releases
Answer:

Yes there is.

Based on the UNIX signals seen in the logs,  it can confirmed quickly about the restart/crash. 

From the TIM log, if it is getting "SIGTERM", signal 15, then it was manually restarted. If TIM is not responding, then it is "SIGINT" which is a signal 2 kill. 

For a TIM Crash,  generally it gets the "SIGABRT", signal 6, or "SIGSEGV", signal 11, in the TIM logs or stdoutlog.