Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.