Skip to content

Instantly share code, notes, and snippets.

@biow0lf
Created January 28, 2012 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biow0lf/1695031 to your computer and use it in GitHub Desktop.
Save biow0lf/1695031 to your computer and use it in GitHub Desktop.
Selenium manifest file for Solaris 10 (/var/svc/manifest/local/selenium.xml)
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type="manifest" name="Selenium">
<service name="application/selenium" type="service" version="1">
<!-- Initial state of the service is disabled -->
<create_default_instance enabled="false" />
<!-- Only one instance of Selenium server should ever run per server -->
<single_instance />
<dependency name="multi-user-server" type="service" grouping="require_all" restart_on="none">
<service_fmri value="svc:/milestone/multi-user-server" />
</dependency>
<method_context>
<method_credential user='root' group='root' />
<method_environment>
<envvar name='DISPLAY' value=':5' />
</method_environment>
</method_context>
<exec_method type="method" name="start" exec="/usr/bin/java -jar /apps/selenium/selenium-server-standalone-2.18.0.jar -firefoxProfileTemplate /apps/selenium/.mozilla" timeout_seconds="0">
<method_context>
<method_environment>
<envvar name="DISPLAY" value=":5" />
<envvar name="HOME" value="/apps/selenium/" />
</method_environment>
</method_context>
</exec_method>
<exec_method type="method" name="stop" exec=":kill -TERM" timeout_seconds="30"/>
<!-- We are going to be kicking off a single child process so we want Wait mode-->
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child' />
</property_group>
<stability value="Unstable" />
<template>
<common_name>
<loctext xml:lang='C'>Selenium server</loctext>
</common_name>
<documentation>
<doc_link name='seleniumhq.org' uri='http://seleniumhq.org/docs/' />
</documentation>
</template>
</service>
</service_bundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment