LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2009, 07:02 AM   #1
johnhelen
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
How I know when my app is shutdown


Hello

I have an application(process) that was shutdown some days ago but I do not know why (the computer is still running). I want to know when the app was shutdown so I can find out the reason. However, the application's log only show when is started.

Here is the output of ps -ef command after I restarted the application

admin 18064 1 0 11:11 pts/2 00:00:03 java -server -Djava.ext.dirs=. -Djava.rmi.server.hostname=localserver org.alfresco.deployment.Main application-context.xml

Is there any information in a system log that helps me to know when the app was shutdown?. Could you please help

Many thanks
johnhelen

Last edited by johnhelen; 09-10-2009 at 07:06 AM.
 
Old 09-10-2009, 08:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by johnhelen View Post
Hello

I have an application(process) that was shutdown some days ago but I do not know why (the computer is still running). I want to know when the app was shutdown so I can find out the reason. However, the application's log only show when is started.

Here is the output of ps -ef command after I restarted the application

admin 18064 1 0 11:11 pts/2 00:00:03 java -server -Djava.ext.dirs=. -Djava.rmi.server.hostname=localserver org.alfresco.deployment.Main application-context.xml

Is there any information in a system log that helps me to know when the app was shutdown?. Could you please help

Many thanks
johnhelen
Not enough information to say. If the app was killed (like with a "kill -9"), then the only way to know would be if the application itself wrote something before dying, or to look at everyone's .bash_history, to see who issued the kill statement.

If the application has a shutdown script, that may tell something, but since you don't say anything about what the application is, any details about it, or version/distro of Linux, we can't really be of much help.
 
Old 09-11-2009, 06:31 AM   #3
Marko Hyvärinen
LQ Newbie
 
Registered: May 2009
Posts: 24

Rep: Reputation: 15
if process dies, not to my knowlegdy there are no place it is written up.

put your own script for example to detect shutdown if happens more frequently.

Marko

does that java program have application log own ?
or try:
grep -iE "your program name" /var/log/messages
for example....

Marko

Last edited by Marko Hyvärinen; 09-11-2009 at 06:33 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User shutdown - 'cp -i -p shutdown /usr/sbin/shutdown2 - why does this not work, can? mitchellray Linux - Desktop 4 03-20-2009 09:31 PM
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 02:34 AM
bash - start app, [do stuff], kill started app MiniMe001 Programming 3 03-19-2008 03:06 PM
Anyone know of free auto shutdown app? XORsist Linux - Software 2 05-24-2007 12:58 AM
script or app mailcheck app from shell pandersson61 Linux - Software 1 03-24-2006 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration