Subject: pkg/18250: jakarta-tomcat rc.d script 'restart' doesn't wait for jvm exit
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rtr@wasabisystems.com>
List: netbsd-bugs
Date: 09/10/2002 18:21:10
>Number: 18250
>Category: pkg
>Synopsis: jakarta-tomcat rc.d script 'restart' doesn't wait for jvm exit
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 10 01:23:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: rtr@wasabisystems.com
>Release: NetBSD 1.6E
>Organization:
None
>Environment:
System: NetBSD elysium 1.6E NetBSD 1.6E (elysium) #0: Tue Aug 6 07:29:42 EST 2002 rtr@elysium:/wasabi/home/source/co/retry/src/sys/arch/i386/compile/elysium i386
Architecture: i386
Machine: i386
>Description:
pkg www/jakarta-tomcat's rc.d script restart is too quick.
It doesn't wait for the old jvm (and servlet container) to die after
stop before it attempts to start again. When the start part of the
restart occurs resources from the old instance are still allocated
and the servlet container can't obtain them (e.g. it can't open socket
on server port). All kinds of exceptions ensue from this.
Also, the location of the etc/rc.d script `/usr/pkg/etc/rc.d/tomcat'
sucks can it not be installed in /etc/rc.d instead?
>How-To-Repeat:
Install jakarta-tomcat, start it and then try to restart it with it's
rc.d script.
>Fix:
There's been some magic added to some scripts recently that wait for
pid's before restarting.. I can think of mountd being one of them.
>Release-Note:
>Audit-Trail:
>Unformatted: