Created
March 14, 2019 22:41
-
-
Save bahamas10/c396c8a0ecb5080d8ebf9365990154d0 to your computer and use it in GitHub Desktop.
mosquitto on smartos SMF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 &' 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