Skip to content

Instantly share code, notes, and snippets.

@jda jda/stash.xml
Created Jul 17, 2013

Embed
What would you like to do?
SMF Manifest for Atlassian Stash on SmartOS
<?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/stash' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='network' grouping='require_all' restart_on='error' 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>
<dependency name='database' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/pkgsrc/postgresql:default'/>
</dependency>
<exec_method name='start' type='method' exec='/opt/stash/bin/start-stash.sh' timeout_seconds='30'>
<method_context>
<method_credential user='stash' group='other' privileges='basic,net_privaddr'/>
<method_environment>
<envvar name='JAVA_HOME' value='/opt/local/java/sun6'/>
<envvar name='CATALINA_BASE' value='/opt/stash'/>
<envvar name='CATALINA_HOME' value='/opt/stash'/>
<envvar name='CATALINA_TMPDIR' value='/opt/stash/temp'/>
</method_environment>
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec='/opt/stash/bin/stop-stash.sh' timeout_seconds='60'>
<method_context>
<method_credential user='stash' group='other'/>
<method_environment>
<envvar name='JAVA_HOME' value='/opt/local/java/sun6'/>
<envvar name='CATALINA_BASE' value='/opt/stash'/>
<envvar name='CATALINA_HOME' value='/opt/stash'/>
<envvar name='CATALINA_TMPDIR' value='/opt/stash/temp'/>
</method_environment>
</method_context>
</exec_method>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>Atlassian Stash</loctext>
</common_name>
</template>
</service>
</service_bundle>
@vladimirlukyanov

This comment has been minimized.

Copy link

vladimirlukyanov commented Dec 23, 2014

how to use this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.