Bug 168442 - www/tomcat7: tomcat7 startup script have to wait more than 10 seconds for production servers
Summary: www/tomcat7: tomcat7 startup script have to wait more than 10 seconds for pro...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 20:30 UTC by Bruno Ribeiro da Silva
Modified: 2012-06-13 12:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.10 KB, patch)
2012-05-29 20:30 UTC, Bruno Ribeiro da Silva
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Ribeiro da Silva 2012-05-29 20:30:02 UTC
tomcat7 startup script have to wait more than 10 seconds for real production servers.

The problem is that the new tomcat7 init script has a hard coded 10 seconds for waiting the server to startup which can fail in real production servers because applications usually take more than this to start.

This problem affects the versions since tomcat 7.0.26_1.

Credits to:
Bruno Ribeiro da Silva <contato@brunoribeiro.org>
Odyr Sohn <odyrsohn@gmail.com>

Fix: Create a new variable in the init script to wait for a custom time and/or set it's default to 120 seconds.

Patch attached with submission follows:
How-To-Repeat: Deploy some real application to tomcat7 and try to start by using the init script.
Comment 1 Glen Barber freebsd_committer freebsd_triage 2012-06-11 13:53:59 UTC
Responsible Changed
From-To: freebsd-www->ale

Over to maintainer.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-06-13 12:23:09 UTC
ale         2012-06-13 11:22:56 UTC

  FreeBSD ports repository

  Modified files:
    www/tomcat7          Makefile 
    www/tomcat7/files    tomcat7.in 
  Log:
  Add support for custom wait time and increase the default to 30 seconds.
  
  PR:             ports/168442
  Submitted by:   Bruno Ribeiro da Silva <contato@brunoribeiro.org>
  
  Revision  Changes    Path
  1.81      +1 -0      ports/www/tomcat7/Makefile
  1.7       +7 -2      ports/www/tomcat7/files/tomcat7.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2012-06-13 12:23:14 UTC
State Changed
From-To: open->closed

Committed, thanks!