Skip to content

Instantly share code, notes, and snippets.

@jmealo
Created August 19, 2013 14:20
Show Gist options
  • Save jmealo/6269672 to your computer and use it in GitHub Desktop.
Save jmealo/6269672 to your computer and use it in GitHub Desktop.
Wackamole SMF manifest for the pkgsrc distribution on SmartOS (based on everycity's manifest)
<?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/wackamole' type='service' version='0'>
<dependency name='filesystem_minimal' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/minimal'/>
</dependency>
<dependency name='loopback' grouping='require_any' restart_on='error' type='service'>
<service_fmri value='svc:/network/loopback'/>
</dependency>
<dependency name='network' grouping='optional_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/network'/>
</dependency>
<dependency name='spread' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/network/spread'/>
</dependency>
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
<instance name='wackamole' enabled='false'>
<dependency name='config_data' grouping='require_all' restart_on='none' type='path'>
<service_fmri value='file://localhost/opt/local/etc/wackamole.conf'/>
</dependency>
<exec_method name='start' type='method' exec='/opt/local/sbin/wackamole -c /opt/local/etc/wackamole.conf' timeout_seconds='60'/>
<property_group name='general' type='framework'>
<property name='action_authorization' type='astring'/>
<property name='value_authorization' type='astring'/>
</property_group>
</instance>
<stability value='Unstable'/>
</service>
</service_bundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment