You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Harden ZHU <ha...@sympatico.ca> on 2001/07/21 11:42:27 UTC

run Startup.sh at background

Hi

I start startup.sh at solaris by telnet. Everything is fine. But when I
logout telnet, the tomcat stopped too.
So what should I do?

Thanks

Harden


Re: run Startup.sh at background

Posted by Jeff Hoare <jh...@ihug.com.au>.
OK,
Well what happens? What is the exit status of nohup? what is the output in 
nohup.out?
nohup is a pretty standard utility for doing exactly what you want (Iuse it 
on the sun box at work). Also what version of tomcat are you using? The 
startup script calls another script which starts the java class async, you 
may have to amend this to be nohup.

I'm running version 4 and for me the startup program exists straight away, 
and I can log out without having the job terminate, but I am running the 
server as root (at home). 


On Sunday 22 July 2001 03:46, you wrote:
> Hi,
>
> Thanks, I just tried nohup. it doesn't work. Any otherway start tomcat
> remotely and
> log out without problem.
>
> Harden
>
> ----- Original Message -----
> From: "Jeff Hoare" <jh...@ihug.com.au>
> To: <to...@jakarta.apache.org>
> Sent: Sunday, July 22, 2001 4:13 AM
> Subject: Re: run Startup.sh at background
>
> > Hi,
> > I would have though that it should just run in background. But you could
>
> use
>
> > nohup:
> >
> > nohup bin/startup.sh &
> >
> > This will leave it running, but I'm surprised as I can start my server
> > remotely via tomcat and log out without problem.
> >
> > Jeff
> >
> > On Saturday 21 July 2001 19:42, you wrote:
> > > Hi
> > >
> > > I start startup.sh at solaris by telnet. Everything is fine. But when I
> > > logout telnet, the tomcat stopped too.
> > > So what should I do?
> > >
> > > Thanks
> > >
> > > Harden

Re: run Startup.sh at background

Posted by Dmitri Colebatch <di...@bigpond.net.au>.
"nohup" not "nohub" - should do the trick (o:

cheesr
dim

On Sat, 21 Jul 2001, Lars Nielsen Lind wrote:

> When I try to use nohub, the command is not recognized. I am using Red Hat 7.1.
> 
> What can I do to activate the nohub command?
> 
> Lars Nielsen Lind
> 
> 
> ----- Original Message ----- 
> From: "Jeff Hoare" <jh...@ihug.com.au>
> To: <to...@jakarta.apache.org>
> Sent: Sunday, July 22, 2001 10:13 AM
> Subject: Re: run Startup.sh at background
> 
> 
> > Hi,
> > I would have though that it should just run in background. But you could use 
> > nohup:
> > 
> > nohup bin/startup.sh &
> > 
> > This will leave it running, but I'm surprised as I can start my server 
> > remotely via tomcat and log out without problem.
> > 
> > Jeff
> > On Saturday 21 July 2001 19:42, you wrote:
> > > Hi
> > >
> > > I start startup.sh at solaris by telnet. Everything is fine. But when I
> > > logout telnet, the tomcat stopped too.
> > > So what should I do?
> > >
> > > Thanks
> > >
> > > Harden
> > 
> > 
> 
> 


Re: run Startup.sh at background

Posted by Lars Nielsen Lind <mo...@worldonline.dk>.
When I try to use nohub, the command is not recognized. I am using Red Hat 7.1.

What can I do to activate the nohub command?

Lars Nielsen Lind


----- Original Message ----- 
From: "Jeff Hoare" <jh...@ihug.com.au>
To: <to...@jakarta.apache.org>
Sent: Sunday, July 22, 2001 10:13 AM
Subject: Re: run Startup.sh at background


> Hi,
> I would have though that it should just run in background. But you could use 
> nohup:
> 
> nohup bin/startup.sh &
> 
> This will leave it running, but I'm surprised as I can start my server 
> remotely via tomcat and log out without problem.
> 
> Jeff
> On Saturday 21 July 2001 19:42, you wrote:
> > Hi
> >
> > I start startup.sh at solaris by telnet. Everything is fine. But when I
> > logout telnet, the tomcat stopped too.
> > So what should I do?
> >
> > Thanks
> >
> > Harden
> 
> 


Re: run Startup.sh at background

Posted by Harden ZHU <ha...@sympatico.ca>.
Hi,

Thanks, I just tried nohup. it doesn't work. Any otherway start tomcat
remotely and
log out without problem.

Harden

----- Original Message -----
From: "Jeff Hoare" <jh...@ihug.com.au>
To: <to...@jakarta.apache.org>
Sent: Sunday, July 22, 2001 4:13 AM
Subject: Re: run Startup.sh at background


> Hi,
> I would have though that it should just run in background. But you could
use
> nohup:
>
> nohup bin/startup.sh &
>
> This will leave it running, but I'm surprised as I can start my server
> remotely via tomcat and log out without problem.
>
> Jeff
> On Saturday 21 July 2001 19:42, you wrote:
> > Hi
> >
> > I start startup.sh at solaris by telnet. Everything is fine. But when I
> > logout telnet, the tomcat stopped too.
> > So what should I do?
> >
> > Thanks
> >
> > Harden


Re: run Startup.sh at background

Posted by Jeff Hoare <jh...@ihug.com.au>.
Hi,
I would have though that it should just run in background. But you could use 
nohup:

nohup bin/startup.sh &

This will leave it running, but I'm surprised as I can start my server 
remotely via tomcat and log out without problem.

Jeff
On Saturday 21 July 2001 19:42, you wrote:
> Hi
>
> I start startup.sh at solaris by telnet. Everything is fine. But when I
> logout telnet, the tomcat stopped too.
> So what should I do?
>
> Thanks
>
> Harden

Re: run Startup.sh at background

Posted by "Paul D. Bain" <pa...@bigfoot.com>.
At Saturday 7/21/01 05:42 AM , you wrote:
>Hi
>
>I start startup.sh at solaris by telnet. Everything is fine. But when I
>logout telnet, the tomcat stopped too.
>So what should I do?

Try to run Tomcat as a background process by using the ampersand symbol ("&").
Let's say that you start Tomcat by executing a shell script called
"startup.sh". If so, then you might try this:

        # startup.sh &

The ampersand tells the operating system to run the file startup.sh as a
background process, which means that that process should continue to run even
after you close your telnet connection. If that does not work, then try running
it as a user other than yourself, perhaps as the root user or the user "nobody"
(many people run Apache as the user nobody). Or you could create a user named
"tomcat" and run Tomcat using that user's account and name.

-- Paul Bain