How can I identify a program caught in an endless loop; where it runs, dies, then runs again? How can I kill it and prevent it from starting again - is reinstalling the package the only way?
I've just removed the
sos package from a CentOS 6.7 machine in order to stop it running
sosreport as root around once every minute, which was tying up major resources and slowing down the server. When I tried to kill the PID, it simply popped up again using a different one. It seemed to exit by itself, but would then run again almost immediately.
This indicates that the process is not a 'zombie' by the normal definition, as it both exits by itself then pops up again as a new process.
I checked crontab for an entry that runs it, and could not find one, and I am not sure how to check for this kind of problem. Eventually, reinstalling the package seemed to fix the issue in this case.
Is this behaviour indicative of a wider problem?