LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ps cmd has TTY as "?" (https://www.linuxquestions.org/questions/linux-newbie-8/ps-cmd-has-tty-as-404351/)

vjkchary 01-17-2006 02:45 AM

ps cmd has TTY as "?"
 
Hi,

When I give the command "ps -ef | grep java" to see if my tomcat is running.. I find that the TTY column shows up as "?". What does this mean. My application then would work. I am killing this process and starting tomcat again. Please help. Thanks.

With Regards,
vjkchary.

T.Hsu 01-17-2006 02:59 AM

That means the process is not attached to a controlling terminal.

vjkchary 01-17-2006 03:20 AM

can we recover from this
 
Hi,

Can we recover from this.. I mean is there any other way to get my tomcat running, other than to kill the process and restart it again.

Regards,
vjkchary.

timmeke 01-17-2006 04:20 AM

Tomcat, being a webserver program, should run independently of anyone's terminal window.
So, why would you like to kill it?

Many programs run without a TTY (a terminal window) associated to them. That's normal
for services like ftp, http (web), etc.

Furthermore, if your "ps" lists tomcat, then it is already running.

But how do you run it exactly? Using a script in /etc/init.d? As a daemon?


All times are GMT -5. The time now is 07:40 AM.