0

There's a complicated script that starts other scripts. It all runs for about 6 hours. But I've noticed that one or two child scripts are being killed from time to time.

All I get is a line in log saying that script is killed.

How do I get some info on who kills it? Is it possible?

Bobby
  • 534
  • 3
  • 7
  • 21

1 Answers1

2

The nature of killing a process does not provide an originator. A bit is set in a kernel structure associated with the process, indicating a signal is pending. If the signalling process does not indicate it is signalling, there's no way to find out.

Some processes do in fact announce their signalling. On Linux, the OOM (Out of Memory) killer might write a log entry to /var/log/messages. If the reason for the signalling to your script is an OOM condition, this might be the place to look.

See also Who "Killed" my process and why?

Jens
  • 69,818
  • 15
  • 125
  • 179