Sha256: 17a6cabf5dbdd616ae6524ee75cc3dbc7001be3b2a0f11d91a6b216afb573d63

Contents?: true

Size: 1.06 KB

Versions: 22

Compression:

Stored size: 1.06 KB

Contents

<%
  @path = "#{rubber_env.selenium_grid_hub_dir}/startup.sh"
  @perms = 0755

  args = []
  args << '-Xms256m'
  args << "-Xmx#{rubber_env.selenium_grid_hub_max_heap_in_mb}m"
  args << "-XX:MaxPermSize=#{rubber_env.selenium_grid_hub_permgen_in_mb}m"
  args << '-server'
  args << '-Xdebug'
  args << '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005'
  args << "-cp #{rubber_env.selenium_grid_hub_dir}/selenium-server-standalone-#{rubber_env.selenium_grid_hub_version}.jar:#{rubber_env.selenium_grid_hub_dir}/json-simple.jar:#{rubber_env.selenium_grid_hub_dir}/gelfj.jar"
  args << "-Djava.util.logging.config.file=#{rubber_env.selenium_grid_hub_dir}/logging.properties"
  args << "org.openqa.grid.selenium.GridLauncher"
  args << "-role hub"
  args << "-throwOnCapabilityNotPresent false"
  args << "-browserTimeout 60"
  args << "-log #{rubber_env.selenium_grid_hub_log_dir}/hub.log"
%>
#!/bin/bash

ulimit -n 65536
nohup java <%= args.join(' ') %> >> <%= rubber_env.selenium_grid_hub_log_dir %>/hub.log 2>&1 & echo $! > <%= rubber_env.selenium_grid_hub_dir %>/hub.pid

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-3.2.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-3.2.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-3.1.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-3.0.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-3.0.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.16.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.15.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.15.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.15.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.14.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.13.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.13.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.12.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.12.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.12.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.11.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.10.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.10.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.10.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh