Skip to content

Instantly share code, notes, and snippets.

@yruss972
Last active August 29, 2015 14:02
Show Gist options
  • Save yruss972/c814b05fb19980b9b060 to your computer and use it in GitHub Desktop.
Save yruss972/c814b05fb19980b9b060 to your computer and use it in GitHub Desktop.
vippy smf manifext
<?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='network/vippyd' type='service' version='0'>
<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>
<exec_method name='start' type='method' exec='/opt/local/bin/vippyd -c %{config/conf_filename}' timeout_seconds='60'>
<method_context>
<method_credential user='root' group='root'/>
<method_environment>
<envvar name='PATH' value='/opt/local/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin:/usr/sfw/bin:/usr/local/bin'/>
</method_environment>
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
<instance name='default' enabled='true'>
<property_group name='config' type='application'>
<propval name='conf_filename' type='astring' value='/opt/local/etc/vippy/vippy.conf'/>
</property_group>
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child'/>
<propval name='ignore_error' type='astring' value='core,signal'/>
</property_group>
</instance>
<stability value='Evolving'/>
<template>
<common_name>
<loctext xml:lang='C'>Vippy Daemon</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