Skip to content

Instantly share code, notes, and snippets.

@bahamas10
Created March 14, 2019 22:41
Show Gist options
  • Select an option

  • Save bahamas10/c396c8a0ecb5080d8ebf9365990154d0 to your computer and use it in GitHub Desktop.

Select an option

Save bahamas10/c396c8a0ecb5080d8ebf9365990154d0 to your computer and use it in GitHub Desktop.
mosquitto on smartos SMF
<?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/mosquitto' type='service' version='0'>
<create_default_instance enabled='true'/>
<dependency name='dep0' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/multi-user:default'/>
</dependency>
<exec_method name='start' type='method' exec='mosquitto -c /opt/local/etc/mosquitto/mosquitto.conf &amp;' timeout_seconds='10'>
<method_context working_directory='/var/empty'>
<method_environment>
<envvar name='PATH' value='/opt/local/sbin:/opt/local/bin:/opt/custom/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'/>
<envvar name='HOME' value='/home/mosquitto'/>
<envvar name='TZ' value='America/New_York'/>
</method_environment>
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
<template>
<common_name>
<loctext xml:lang='C'>MQTT Server</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