Hi
You can build a manifest using this web page:
http://sgpit.com/smf/

Bye

Paolo
On 02/18/15 11:36 AM, Matthew Law via smartos-discuss wrote:
I hope this is not O/T...

We have a zone which runs a small Ruby web app. This is fronted by nginx and runs the unicorn app server and Resque message queue. The app can be started by running "bundle exec unicorn -c /home/appuser/current/config/unicorn.rb -E production -D" and the queue workers with: "bundle exec rake resque:work" (both of these are commands are issued as the appuser user from the /home/appuser/current dir, and so inherit their path etc).

This all works fine when run manually either logged into the zone as the app user or remotely over ssh with something like capistrano. I would like to create an SMF manifest to do the same if the zone is restarted but I am not sure how to go about doing that because of the PATH requirements and the bundler abstraction.

On the equivalent Linux environment we would normally use something like monit 
to do this but I couldn't find monit in the packages on SmartOS. I tried 
compiling it from source but it won't run and I suspect SMF is the best 
solution in SmartOS?  Any help would be appreciated.

Thanks in advance,

Matt.


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/23801930-55805ab2
Modify Your Subscription: https://www.listbox.com/member/?&;
Powered by Listbox: http://www.listbox.com




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to