Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add SMF manifest for SQL Relay

  • Loading branch information...
commit 6f824b4121aa3874b1d07dad2c70e0feaf14884d 1 parent d377af5
@mamash authored
Showing with 39 additions and 0 deletions.
  1. +39 −0 meta/joyent/sqlrelay/manifest.xml
View
39 meta/joyent/sqlrelay/manifest.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="sqlrelay">
+ <service name="pkgsrc/sqlrelay" type="service" version="1">
+ <dependency name="network" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/milestone/network:default" />
+ </dependency>
+ <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/system/filesystem/local" />
+ </dependency>
+ <method_context working_directory='@SMF_HOME@'>
+ <method_credential user='@SMF_USER@' group='@SMF_GROUP@' />
+ <method_environment>
+ <envvar name="PATH" value="@PREFIX@/sbin:@PREFIX@/bin:/usr/sbin:/usr/bin" />
+ </method_environment>
+ </method_context>
+ <exec_method type="method" name="start" exec="@PREFIX@/bin/sqlr-start -id %i" timeout_seconds="3600" />
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="contract" />
+ <propval name="ignore_error" type="astring" value="core,signal" />
+ </property_group>
+ <instance name="default" enabled="false">
+ <dependency name="cachemanager" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/pkgsrc/sqlrelay:cachemanager" />
+ </dependency>
+ </instance>
+ <instance name="cachemanager" enabled="false">
+ <exec_method type="method" name="start" exec="@PREFIX@/bin/sqlr-cachemanager" timeout_seconds="3600" />
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="3600" />
+ </instance>
+ <stability value="Evolving" />
+ <template>
+ <common_name>
+ <loctext xml:lang="C">SQL Relay</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>
Please sign in to comment.
Something went wrong with that request. Please try again.