----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Brad:
This approach doesn't provide a clean way of shutting down or
restarting jserv. May be a variant of this approach, with a check for
something (a file) between jserv starts...
-arun
> > Unlike in automatic mode, if the JVM crashes for some
> reason in manual mode,
> > there is nothing to restart it..... How do I build a
> standalone jserv_wrapper?
>
> Something that I do which is similar to this (on Windows NT / 2000) is
> to create a couple of batch files that will automatically
> restart jserv
> if it crashes or is killed. They look something like this:
>
> jserv.bat:
> sleep 2
> jserv_never_dies.bat
>
> jserv_never_dies.bat:
> java -classpath (blah blah blah) org.apache.jserv.JServ 2>> error.log
> jserv.bat
>
> There are other ways to do this, but this works. The
> sleep.exe command
> is in the NT resource kit, and it allows the JVM to completely exit
> before trying to restart jserv. It's not entirely necessary. This
> setup is useful if the JVM crashes and exits, but if JServ has some
> other nasty error but does not exit the JVM then it won't restart it
> automatically.
>
> Brad Andrews
> Stanford University
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]