|
From: Jan V. B. <jan...@gm...> - 2010-02-12 08:05:56
|
Forgot to say, but ofcourse I have this in my wrapper.conf file: wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperSimpleApp.waitForStartMain=TRUE I've also tried with wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperSimpleApp.waitForStartMain=100 but it makes no difference. Kind regards Jan Jan Van Besien wrote: > Hi all, > > I am trying to run tomcat-6.0.18 on linux (centos 5.4) with tanuki > wrapper 3.2.3. > > This all works very nice, but now I would like the > "/etc/init.d/tomcat-tanuki start" command to return only after tomcat is > fully started. > > I thought the > -Dorg.tanukisoftware.wrapper.WrapperSimpleApp.waitForStartMain=TRUE > option to be what I am looking for, but I don't seem to get it to work > as I expect it to be supposed to work. > > What I did: > > I am using the WrapperSimpleApp. > > I start tomcat using "org.apache.catalina.startup.Bootstrap startd". > > When I enable debug logging in the wrapper, I see this: > > INFO: Server startup in 19484 ms > WrapperSimpleApp: main method completed > > The first line is tomcat saying it has completed starting the server. > The second line is the tanuki wrapper saying the main method has > returned. So it seems this is OK. > > But unfortunately when I run the tanuki wrapper as the /etc/init.d > script does: > > /usr/sbin/tanukiwrapper "/usr/local/tomcat6/conf/wrapper.conf" > wrapper.syslog.ident=tomcat6 > wrapper.pidfile="/usr/local/tomcat6/tomcat6.pid" wrapper.daemonize=TRUE > > This command returns immediately. Without "daemonize" it never returns. > > I would like it to return when it says "main method completed". Is this > possible? > > Thanks in advance! > > Kind regards, > Jan Van Besien > > |