Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Also adjust the init.d for tomcats.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfclere authored and jfclere committed Jun 19, 2014
1 parent f7268d6 commit 4f888a1
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,21 @@ private void populatePluginConfiguration(Configuration configuration, String cat
.exists()) {
if (isEWS(catalinaHome)) {
controlMethod = TomcatServerComponent.ControlMethod.RPM;
String startscript = "/etc/init.d/tomcat";
if (catalinaHome.contains("8.0")) {
startscript = startscript.concat("8");
}
if (catalinaHome.contains("7.0")) {
startscript = startscript.concat("7");
}
if (catalinaHome.contains("6.0")) {
startscript = startscript.concat("6");
}
// Check that the file is excutable.
if (new File(startscript).canExecute()) {
configuration.put(new PropertySimple(TomcatServerComponent.PLUGIN_CONFIG_START_SCRIPT, startscript + " start"));
configuration.put(new PropertySimple(TomcatServerComponent.PLUGIN_CONFIG_SHUTDOWN_SCRIPT, startscript + " stop"));
}
}
}

Expand Down

0 comments on commit 4f888a1

Please sign in to comment.