Skip to content

Instantly share code, notes, and snippets.

@dsturnbull
Created June 8, 2011 04:49
Show Gist options
  • Save dsturnbull/1013793 to your computer and use it in GitHub Desktop.
Save dsturnbull/1013793 to your computer and use it in GitHub Desktop.
/lib/svc/manifest/application/atlassian/jira.xml
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/atlassian/jira' type='service' version='0'>
<dependency name='network' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>
<dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local:default'/>
</dependency>
<exec_method name='start' type='method' exec='/lib/svc/method/jira start' timeout_seconds='60'>
<method_context>
<method_credential user='jira' />
<method_environment>
<envvar name='JAVA_HOME' value='/usr/jdk/latest'/>
</method_environment>
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec='/lib/svc/method/jira stop' timeout_seconds='60'>
<method_context>
<method_credential user='jira' />
<method_environment>
<envvar name='JAVA_HOME' value='/usr/jdk/latest'/>
</method_environment>
</method_context>
</exec_method>
<instance name='default' enabled='true'>
<dependency name='postgresql' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='application/database/postgresql_84:default_64bit'/>
</dependency>
<property_group name='method_context' type='framework'>
<propval name='project' type='astring' value=':default'/>
<propval name='resource_pool' type='astring' value=':default'/>
<propval name='working_directory' type='astring' value=':default'/>
</property_group>
<property_group name='atlassian' type='application'>
<propval name='bin' type='astring' value='/export/home/jira/atlassian-jira-4.3.4-standalone'/>
</property_group>
</instance>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>Atlassian JIRA</loctext>
</common_name>
</template>
</service>
</service_bundle>
<!-- http://thegreyblog.blogspot.com/2010/06/registering-jira-as-solaris-smf-managed.html -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment