532 reputation
11327
bio website
location
age
visits member for 2 years, 5 months
seen 12 hours ago

20h
awarded  Notable Question
1d
awarded  Popular Question
Jan
16
comment How to restart my java program automatically if it gets killed?
Still trying to understand this, sorry if I missed any basic stuff : if it thinks that pid is 4000 which will still be running right? then why it starts 4001 then?
Jan
16
accepted How to restart my java program automatically if it gets killed?
Jan
16
comment How to restart my java program automatically if it gets killed?
aahh.. Let me try this out. But doesn't upstart internally checks the pid of the process and make sure if it is not running then start it back again?
Jan
16
comment How to restart my java program automatically if it gets killed?
@mdpc updated the question with details.
Jan
16
revised How to restart my java program automatically if it gets killed?
added 606 characters in body
Jan
16
comment How to restart my java program automatically if it gets killed?
How to find out about PPID? Is there any command you want me to run?
Jan
16
comment How to restart my java program automatically if it gets killed?
@mdpc In my ps PID is already there right or I missed anything?
Jan
16
asked How to restart my java program automatically if it gets killed?
Dec
15
awarded  Notable Question
Nov
20
awarded  Popular Question
Nov
14
awarded  Notable Question
Nov
13
awarded  Notable Question
Nov
12
awarded  Notable Question
Nov
9
awarded  Notable Question
Nov
6
accepted Find out at what time my machine got restarted and why?
Nov
6
comment Find out at what time my machine got restarted and why?
meaning system rebooted at 02:34 AM in the morning today? And what does shut down mean then in this context? Isn't they should be same?
Nov
6
comment Find out at what time my machine got restarted and why?
Thanks robbat for the help. After I ran last command as you told me, I got one line which shows this reboot system boot 2.6.35-22-server Wed Nov 5 02:34 - 23:19 (20:45) what does this mean? I was not able to understand this line 02:34 - 23:19 specifically?
Nov
6
comment Find out at what time my machine got restarted and why?
when you say first field of /proc/uptime you mean to say 20:21 in my case? I tried running this awk '//{print strftime("%c",systime()-$1)}' /proc/uptime but I got an error as awk: line 2: function strftime never defined awk: line 2: function systime never defined