Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a script that I start in the background. Few hours later, process is not running anymore. Is there any way to find out that somebody killed my process and that it didn't die by itself?

Thanks a lof.

share|improve this question

Anyone who wants to kill another users process would have to do this as superuser and you could observe the superuser switch in /var/log/auth.log. Finding a sudo kill ... there would be kind of the smoking gun. Other than that ... nope.

But you could run your script in the foreground maybe inside screen, and set traps for the kill signal and similar stuff. This would still not show you a kill -9, but make things more observable in general.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.