"Marten Lehmann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm using tomcat-5.0.16 with jsvc to bind tomcat to port 80, but running
> it with a different user than root. Startup and running is fine.
> Shutdown (in general) also. But when tomcat (or jsvc?) exits, the
> following entry always appears in catalina.out:
>
> jsvc.exec error: Service exit with a return value of 143
>
> Also, when jsvc is running, all processes are named jsvc, not java. I
> don't understand how jsvc is integrated with tomcat. Can anyone explain,
> please? And why can't I shutdown tomcat via the shutdown-message on port
> 8005 by default anymore, but only kill the master jsvc-process? It seems
> that this is a hard shutdown which could kill threads of webapps which
> must shutdown gracefully. Or did I get something wrong?
>

The jsvc name is a Linux thing, having to do with quirks in Linux
permissions.  You can look through the source if you really find this
interesting (it's half decently documentented there :).  Jsvc works on a
parent-slave model.  The parent sits around to see if the slave has died,
and recieves signals.  The slave invokes Tomcat via JNI, and does Tomcat
things :).  It invokes Tomcat in 'daemon' mode, so that Tomcat doesn't
listen on 8005.  When you send a kill, you send it to the parent, which then
tells the slave to gracefully shutdown.

> Regards
> Marten




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to