Skip to content

Instantly share code, notes, and snippets.

@No9
Created July 2, 2016 17:18
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 No9/472cc7f5bb9cc581735c40d0f4a0ed0c to your computer and use it in GitHub Desktop.
Save No9/472cc7f5bb9cc581735c40d0f4a0ed0c to your computer and use it in GitHub Desktop.
Sample config for sinopia on openindiana
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="sinopia">
<service name="site/sinopia" type="service" version="1">
<create_default_instance enabled="true"/>
<single_instance/>
<dependency name="network" grouping="require_all" restart_on="refresh" type="service">
<service_fmri value="svc:/network/service:default"/>
</dependency>
<dependency name="filesystem" grouping="require_all" restart_on="refresh" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<method_context working_directory="/home/anton/tools/bin">
<method_credential user="anton" group="staff" privileges='basic,net_privaddr' />
<method_environment>
<envvar name="PATH" value="/usr/local/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin/opt/local/sbin:/opt/local/bin:/home/anton/tools/bin"/>
<envvar name="HOME" value="/home/anton"/>
</method_environment>
</method_context>
<exec_method
type="method"
name="start"
exec="/usr/local/bin/node /home/anton/tools/lib/node_modules/sinopia/lib/cli.js "
timeout_seconds="60"/>
<exec_method
type="method"
name="stop"
exec=":kill"
timeout_seconds="60"/>
<property_group name="startd" type="framework">
<propval name="duration" type="astring" value="child"/>
<propval name="ignore_error" type="astring" value="core,signal"/>
</property_group>
<property_group name="application" type="application">
</property_group>
<stability value="Evolving"/>
<template>
<common_name>
<loctext xml:lang="C">node.js sinopia service</loctext>
</common_name>
</template>
</service>
</service_bundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment