Sha256: b238550db01d45063d508497b4e7bd301c3cf194fe2256ee1a88c10a7e1fe9ac

Contents?: true

Size: 1.06 KB

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
rubber-2.8.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.5 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.4 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.3 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.7.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.5 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.4 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.3 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.6.0 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.5.5 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.5.4 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.5.3 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.5.2 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh
rubber-2.5.1 templates/selenium_grid_hub/config/rubber/role/selenium_grid_hub/startup.sh