<?xml version='1.0'?> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <service_bundle type='manifest' name='mongrel/example'> <service name='network/mongrel/example' type='service' version='0'> <create_default_instance enabled='true'/> <single_instance/> <dependency name='fs' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/local'/> </dependency> <dependency name='net' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/network/loopback'/> <!-- need nfs/client because the mongrel stuff is on /home which is nfs mounted --> <service_fmri value='svc:/network/nfs/client'/> </dependency> <dependent name='mongrel_example' restart_on='none' grouping='optional_all'> <service_fmri value='svc:/milestone/multi-user'/> </dependent> <exec_method name='start' type='method' exec='/opt/csw/bin/mongrel_rails cluster::start' timeout_seconds='60'> <method_context working_directory='/home/example/rails/example.org/current'> <method_credential user='example' group='example' /> <method_environment> <envvar name="PATH" value="/usr/bin:/bin:/opt/csw/bin" /> </method_environment> </method_context> </exec_method> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'> <method_context/> </exec_method> </service> </service_bundle>
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
SMF Manifest for Mongrels on TXD Containers (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Capistrano for TXD Containers in rails capistrano container
» make mongrel cleanup stale p... in rails mongrel
» Mongrel cluster starting aft... in ruby rails ubuntu mongrel mongrel_cluster gutsy gibbon
» Typo under lighttpd in lighttpd ruby rails typo ruby-fcgi
» Locking your Rails app to sp... in rails gems environments version locking
» Use Google's API to search y... in rails google search wsdl webservices
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails