LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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 08:06 AM.
 
Old 09-10-2009, 09:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
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, 07: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 07:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:31 PM
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 03:34 AM
bash - start app, [do stuff], kill started app MiniMe001 Programming 3 03-19-2008 04:06 PM
Anyone know of free auto shutdown app? XORsist Linux - Software 2 05-24-2007 01:58 AM
script or app mailcheck app from shell pandersson61 Linux - Software 1 03-24-2006 09:16 PM


All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration