Re: [JBoss-user] Proper shutdown under Linux

2001-06-20 Thread danch (Dan Christopherson)

Laurens Fridael wrote:

> 
> Help me out please. How can I properly shutdown JBoss under Linux? I'm 
> using IBM's JDK 1.3 if that matters.
> 

Apparently that matters - JBoss under Sun's VM responds to a normal 'kill'

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Proper shutdown under Linux

2001-06-20 Thread Laurens Fridael



Thanks 
to both you and Paul for your swift responses. You really helped me out. I 
didn't even know that JBoss has its own web server console!
 
Thanks 
again
-Laurens

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  [EMAIL PROTECTED]Sent: woensdag 20 juni 2001 
  11:11To: [EMAIL PROTECTED]Subject: RE: 
  [JBoss-user] Proper shutdown under Linux
  Somewhere on the JBoss mailing list I've found shell 
  scripts to start/stop JBoss on RH. I use Solaris and had to change them 
  slightly. However, I do not remember the link to the original script, so 
  here's my version.
   
   


RE: [JBoss-user] Proper shutdown under Linux

2001-06-20 Thread Kimpton,C (Chris)

Hi,
 
This is what I do (under SuSE Linux)
 
#find the run.sh process
ps -ef | grep run.sh | grep -v grep | awk '{ print $2 }'
>/tmp/jbossserverpid1.tmp
#find the jboss/java process subordinate to it 
ps -ef | grep `cat /tmp/jbossserverpid1.tmp` | grep jboss | awk '{ print $2
}' >/tmp/jbossserverpid.tmp
#tell the java process to die nicely
kill `cat /tmp/jbossserverpid.tmp`
 
The java process then shuts down nicely and thus the run.sh finishes too.
 
HTH,
Chris


-Original Message-
From: Laurens Fridael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 20 June 2001 09:44
To: Jboss-User
Subject: [JBoss-user] Proper shutdown under Linux


Hi,
 
 
I'm using RedHat Linux 6.2. I can start JBoss in the background by running
"run.sh &". However, I cannot properly kill it. I can only kill the parent
process (run.sh) by issuing "kill -9 pid". This abruptly terminates JBoss
without invoking its shutdown procedure. (I'm not seeing the shutdown
commands in the server.log.)
 
Under Windows I can achieve a clean shutdown by ^C-ing in the Window.
However sending an interrupt (^C) or quit signal under Linux using "kill -2"
or "kill -3" doesn't work at all.
 
Help me out please. How can I properly shutdown JBoss under Linux? I'm using
IBM's JDK 1.3 if that matters.
 
 
Regards
-Laurens



This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.

==


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Proper shutdown under Linux

2001-06-20 Thread RRokytskyy



Somewhere on the JBoss mailing list I've found shell 
scripts to start/stop JBoss on RH. I use Solaris and had to change them 
slightly. However, I do not remember the link to the original script, so here's 
my version.
 
file 
/etc/init.d/jboss
 
#!/bin/sh
 
# Source function library.#. 
/etc/rc.d/init.d/functions
 
#SET THE FOLLOWING LINE TO YOUR 
JAVA_HOMEJAVA_HOME=/usr/local/java
 
#SET THE FOLLOWING LINE TO YOUR 
CORRECT JBOSS_HOMEJBOSS_HOME=/opt/jboss
 
PATH=${PATH}:${JBOSS_HOME}/bin:${JAVA_HOME}/bin:${JAVA_HOME}/jre/binexport 
PATH
 
#IF YOU NEED SPECIAL CLASSES IN YOUR 
CLASSPATH#AT STARTUP, ADD THEM TO YOUR CLASSPATH HERE#export 
CLASSPATH=
 
RETVAL=0
# See how we were called.case 
"$1" in   
start) cd 
$JBOSS_HOME/bin echo -n 
"Starting jboss daemon: " 
$JBOSS_HOME/bin/jboss start 
& ;;   
stop) echo -n "Stopping 
jboss daemon: " 
$JBOSS_HOME/bin/jboss stop 
;;   restart) 
echo -n "Restarting jboss daemon: "  $0 stop  sleep 
20
  $0 
start ;;
esac
 
file /opt/jboss/bin/jboss
 
#!/bin/sh
 
JBOSS_HOME=/opt/jbossJAVA_HOME=/usr/java
 
JAVACMD=$JAVA_HOME/bin/java
 
# 
Minimal jar file to get JBoss 
started.CLASSPATH=$CLASSPATH:$JBOSS_HOME/bin/run.jarCLASSPATH="$CLASSPATH:$JBOSS_HOME/lib/crimson.jar"
 
#next 
line for 
jBoss_FINAL-2.0#CLASSPATH="$CLASSPATH:$JBOSS_HOME/lib/jdbc2_0-stdext.jar"#CLASSPATH="$CLASSPATH:$JBOSS_HOME/lib/jboss-jaas.jar"
 
JBOSS_OPTS=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImplJBOSS_OPTS="$JBOSS_OPTS 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"
 
# Add 
the tools.jar file so that Tomcat can find the Java 
compiler.CLASSPATH="${CLASSPATH}:$JAVA_HOME/lib/tools.jar"
#if [ 
"${SPYDERMQ_HOME}X" != "X" ] ; then#    if [ -x 
$SPYDERMQ_HOME ] ; then#    echo 
"Adding jar files in ${SPYDERMQ_HOME}/lib to 
CLASSPATH"#    
CLASSPATH="$CLASSPATH:${SPYDERMQ_HOME}/lib/spydermq.jar"#    
CLASSPATH="$CLASSPATH:${SPYDERMQ_HOME}/lib/jms.jar"#    
CLASSPATH="$CLASSPATH:${SPYDERMQ_HOME}/lib/jnpserver.jar"#    
else#    echo "SPYDERMQ_HOME is set, 
but is an invalid directory"#    
fi#fi
 
if [ 
"$1" = "start" ] ; then   shift   $JAVACMD 
$JBOSS_OPTS -classpath $CLASSPATH org.jboss.Main > /dev/null 2>&1 
&   echo $! > /var/run/jboss.pidelif [ "$1" = "stop" ] 
; then   shift   kill -15 `cat 
/var/run/jboss.pid`   rm -rf /var/run/jboss.pidelif [ "$1" = 
"run" ] ; then   shift   $JAVACMD $JBOSS_OPTS 
-classpath $CLASSPATH org.jboss.Main tomcat "$@"else
   echo "Usage:"   echo "jboss 
(start|run|stop)"   echo 
"    start - start jboss in the 
background"   echo "    
run   - start jboss in the foreground"   echo 
"    stop  - stop 
jboss"
 
   exit 0fi

  -Original Message-From: Laurens Fridael 
  [mailto:[EMAIL PROTECTED]]Sent: Mittwoch, 20. Juni 2001 
  10:44To: Jboss-UserSubject: [JBoss-user] Proper shutdown 
  under Linux
  Hi,
   
   
  I'm using RedHat 
  Linux 6.2. I can start JBoss in the background by running "run.sh &". 
  However, I cannot properly kill it. I can only kill the parent process 
  (run.sh) by issuing "kill -9 pid". This abruptly terminates JBoss without 
  invoking its shutdown procedure. (I'm not seeing the shutdown commands in the 
  server.log.)
   
  Under Windows I 
  can achieve a clean shutdown by ^C-ing in the Window. However sending an 
  interrupt (^C) or quit signal under Linux using "kill -2" or "kill -3" doesn't 
  work at all.
   
  Help me out 
  please. How can I properly shutdown JBoss under Linux? I'm using IBM's JDK 1.3 
  if that matters.
   
   
  Regards
  -Laurens


RE: [JBoss-user] Proper shutdown under Linux

2001-06-20 Thread Paul Austin



Laurens,
 
The 
jboss management interface can be used to shutdown jboss via http://localhost:8082/ViewObjectRes//DefaultDomain%3Atype%3DShutdown.
 
Paul

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Laurens 
  FridaelSent: 20 June 2001 09:44To: 
  Jboss-UserSubject: [JBoss-user] Proper shutdown under 
  Linux
  Hi,
   
   
  I'm using RedHat 
  Linux 6.2. I can start JBoss in the background by running "run.sh &". 
  However, I cannot properly kill it. I can only kill the parent process 
  (run.sh) by issuing "kill -9 pid". This abruptly terminates JBoss without 
  invoking its shutdown procedure. (I'm not seeing the shutdown commands in the 
  server.log.)
   
  Under Windows I 
  can achieve a clean shutdown by ^C-ing in the Window. However sending an 
  interrupt (^C) or quit signal under Linux using "kill -2" or "kill -3" doesn't 
  work at all.
   
  Help me out 
  please. How can I properly shutdown JBoss under Linux? I'm using IBM's JDK 1.3 
  if that matters.
   
   
  Regards
  -Laurens