Subject: pkg/18250: jakarta-tomcat rc.d script 'restart' doesn't wait for jvm exit
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 09/10/2002 18:21:10
>Synopsis: jakarta-tomcat rc.d script 'restart' doesn't wait for jvm exit
>Arrival-Date: Tue Sep 10 01:23:00 PDT 2002
>Release: NetBSD 1.6E
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
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?
Install jakarta-tomcat, start it and then try to restart it with it's
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.