Ticket #241 (closed defect: fixed)

Opened 2 years ago

Last modified 5 months ago

Changes needed to tomcat script

Reported by: ebrown Assigned to: ebrown
Priority: medium Milestone:
Component: topaz Version: 0.8
Keywords: system Cc:
Blocking: Blocked By:

Description (Last modified by ebrown)

source:head/packages/tools/src/main/resources/bin/tomcat

General

  • Add a --verbose flag
  • Add a --force flag (on stop should do a kill -9)
  • Add a thread dump option
  • Get rid of <basename>_ENV_VAR overrides
  • wait on startup (with java) for PID to start listening
    • But how will I get port # if no more <basename>_ENV_VARs?
  • verify restart works reasonably
  • support starting when not root (may work already)
  • Move diagnostics into separate script (see below)

Diagnostics

  • mysql and postgresql reporting

Dependency Graph

Change History

12/14/06 11:41:50 changed by ebrown

  • description changed.

12/14/06 12:03:51 changed by ebrown

Check validity of log4j.xml, server.xml, etc.

12/14/06 12:51:47 changed by ebrown

Test with jsvc again. All the work is there, but there's something wrong with it given all the recent changes.

12/14/06 15:01:43 changed by ebrown

Fix permissions (especially /etc/topaz/keystore.jks)

12/14/06 15:06:54 changed by ebrown

(In [2016]) re #241 Ensure TRUST_STORE file has $USER.$GROUP permissions

03/07/07 16:36:01 changed by amit

status?

03/14/07 00:39:46 changed by ebrown

(In [2437]) re #241 "Cleanup" tomcat script

Addresses most of the issues in #241:

  • Add better usage
  • Use SU_USER, SU_GROUP variables (per Ron's suggestion)
  • Allow scripts to be run as different users and do appropriate things without extraneous errors from things the scripts shouldn't have been attempting anyway
  • Don't try to find JAVA_HOME. It must be set before.
  • Add something to show the version
  • Try to verify the server is up and running before returning
  • Add a "dump" command to cause a thread dump

Still needed eventually:

  • Separate script for diagnostics like reportall and extended status
  • Stupid <basename>_ENV_VAR overrides -- but this will probably force separate diagnostics script. It will mean changes to some of the RPMs as well to ensure sysconfig stuff is setup properly. It is quite a bit more to test

06/19/07 16:21:00 changed by amit

  • version changed from 0.5-SNAPSHOT to 0.8.
  • milestone changed from TBD to 0.8.

06/20/07 12:03:19 changed by amit

  • priority changed from unassigned to medium.

07/04/07 01:32:48 changed by ebrown

  • status changed from new to closed.
  • resolution set to fixed.

None of the remaining things listed above are currently requested from any of our customers. I'd tried to leave it open as a placeholder for the future, but I guess it is easier to close it.

07/16/08 11:00:34 changed by

  • milestone deleted.

Milestone 0.8 deleted