strongloop/node-foreman — pull request #53 by doublerebel (2014-09-15 10:56:16+00:00)
Title: [api] 	SMF export (for Solaris, Illumos, SmartOS)

Initial support for exporting to Service Management Facility XML format. This template has all the necessary parts to run a nodejs application as a service. I am using this now on SmartOS on Joyent Cloud.

This is basically the template that Manifold uses to create SMF manifests for web services:
http://wiki.joyent.com/wiki/display/jpc2/Building+Manifests+with+manifold
With additional properties as suggested by Joyent docs and example:
https://github.com/isaacs/joyent-node-on-smart-example/blob/master/node-hello-world-service-manifest.xml

Right now I have only created the single-instance template. Multiple instances are handled in a single file in SMF, further alteration would be required to node-foreman core to write the multiple instance tags into a template.

Also, multiple instance SMF is poorly documented. Appreciate suggestions from any experienced Solaris users on the correct way to build that out.