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