That's interesting. It works using ksh on HP-UX.
Is there a pid in the james.pid file at all?
Boyalla, Raveendra wrote:
Hi ADK,
It works. Thank you.
But When I say kill -15 `cat james.pid` it says no pid.
ps -ef command also not showing any thing like that.
But I could see JAVA_HOME/bin/java/james/bin.... command pid and I killed it
using kill -15
Thank you
Raveendra Boyalla
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:Aaron.Knauf@;vodafone.co.nz]
Sent: Wednesday, November 13, 2002 6:40 PM
To: James Users List
Subject: RE: Need HELP in How to start and stop James as background thre
ad ?
See below. We use HP-UX here and I haven't used linux for over a year now,
but I think it should work. The change is fairly simple. There are better
ways to do it, but this will work. Call your script from
/etc/rc.d/rc.local. (Assuming redhat or equivalent linux.) In order to
shut it down, use
kill -15 `cat james.pid`
This is somewhat inelegant, but JAMES does register a shutdown handler
thread to capture the shutdown request and perform any necessary tidy up.
I can only assume that it does the job properly. We have never had trouble
with it.
Note: both of these need to be run from the james/bin directory. To make
them work from elsewhere, you could use absolute paths in the script.
Cheers
ADK
--------------------------------------------
There is no magic.
"Boyalla, Raveendra"
<[EMAIL PROTECTED] To: 'James Users
List' <[EMAIL PROTECTED]>
ate.ny.us> cc:
Subject: RE: Need
HELP in How to start and stop James as background thre ad ?
14/11/2002 09:49
Please respond to "James
Users List"
Hi ADK,
I am new to Unix. I need to run james on Linux.
Here is the script I have. Could you please modify it to run as a
background
thread?
#! /bin/sh
#
# Phoenix start script.
#
# Author: Peter Donald <[EMAIL PROTECTED]>
#
# The user may choose to supply parameters to the JVM (such as memory
settings)
# via setting the environment variable PHOENIX_JVM_OPTS
#
# Checking for JAVA_HOME is required on *nix due
# to some distributions stupidly including kaffe in /usr/bin
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match
the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
#
# Locate where phoenix is in filesystem
#
THIS_PROG=`dirname $0`
if [ "$THIS_PROG" = "." ] ; then
THIS_PROG=$PWD
fi
PHOENIX_HOME=$THIS_PROG/..
unset THIS_PROG
# echo "Home directory: $PHOENIX_HOME"
# echo "Home ext directory: $PHOENIX_HOME/lib"
#
# Command to overide JVM ext dir
#
# This is needed as some JVM vendors do foolish things
# like placing jaxp/jaas/xml-parser jars in ext dir
# thus breaking Phoenix
#
JVM_OPTS="-Djava.ext.dirs=$PHOENIX_HOME/lib $PHOENIX_JVM_OPTS"
# Kicking the tires and lighting the fires!!!
$JAVA_HOME/bin/java $JVM_OPTS -jar $PHOENIX_HOME/bin/phoenix-loader.jar $*
../console.log 2>&1 &
echo $! > james.pid
Thank you
Raveendra Boyalla
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:Aaron.Knauf@;vodafone.co.nz]
Sent: Wednesday, November 13, 2002 5:32 PM
To: James Users List
Subject: Re: Need HELP in How to start and stop James as background
thread ?
Cron???? JAMES is a server process that should run all the time - not just
periodically.
We run it with a script using this basic structure:
(
#Run JAMES here
) > console.log 2>&1 &
echo $! > james.pid
This is called from our rc scripts.
Cheers
ADK
--------------------------------------------
There is no magic.
Hemant Joshi
<hmjoshi2000@y To: James Users List
<[EMAIL PROTECTED]>
ahoo.com> cc:
Subject: Re: Need HELP in
How
to start and stop James as background thread ?
14/11/2002
06:36
Please respond
to "James
Users List"
Hello Raveendra,
What platform are you running James on? If you are workign on
Windows
look at this FAQ answer
http://jakarta.apache.org/james/FAQ.html#10
If you could start the service on windows as automatic one, you don't need
anything else.
If you are running on *nix platform, then my suggestion would be to go for
a
shell script cron job that runs it in the background.
Hope it helps.
-Hemant Joshi
--- "Boyalla, Raveendra" <[EMAIL PROTECTED]> wrote:
Hi,
How to start and stop James as background thread ?
Thank you
Raveendra Boyalla
--
To unsubscribe, e-mail: <
mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:james-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <
mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:james-user-help@;jakarta.apache.org>
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org
----------------------------------------------------------------------------
-------------------
Have you seen our website?.... http://www.vodafone.co.nz
CAUTION: This correspondence is confidential and intended for the named
recipient(s) only.
If you are not the named recipient and receive this correspondence in
error,
you must not copy,
distribute or take any action in reliance on it and you should delete it
from your system and
notify the sender immediately. Thank you.
Unless otherwise stated, any views or opinions expressed are solely those
of
the author and do
not represent those of Vodafone New Zealand Limited.
Vodafone New Zealand Limited
21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
Telephone + 64 9 357 5100
Facsimile + 64 9 377 0962
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org
----------------------------------------------------------------------------
-------------------
Have you seen our website?.... http://www.vodafone.co.nz
CAUTION: This correspondence is confidential and intended for the named
recipient(s) only.
If you are not the named recipient and receive this correspondence in error,
you must not copy,
distribute or take any action in reliance on it and you should delete it
from your system and
notify the sender immediately. Thank you.
Unless otherwise stated, any views or opinions expressed are solely those of
the author and do
not represent those of Vodafone New Zealand Limited.
Vodafone New Zealand Limited
21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
Telephone + 64 9 357 5100
Facsimile + 64 9 377 0962
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>