Skip to content

Instantly share code, notes, and snippets.

@brand-it
Created April 1, 2016 00:18
Show Gist options
  • Save brand-it/88a08647e0e85323eec1c3cfc381914d to your computer and use it in GitHub Desktop.
Save brand-it/88a08647e0e85323eec1c3cfc381914d to your computer and use it in GitHub Desktop.
start on runlevel [2345]
stop on runlevel [!2345]
start on starting <%= app %>-<%= name %>
stop on stopping <%= app %>-<%= name %>
respawn
env PORT=<%= port %>
<% engine.env.each do |name,value| -%>
env <%= name.upcase %>='<%= value.gsub(/'/, "'\"'\"'") %>'
<% end -%>
chdir <%= engine.root %>
exec su - rails && /usr/local/rvm/wrappers/gscs_ci/bundle exec <%= process.command %> > <%= engine.root %>/log/<%= name %>.log
start on starting <%= app %>
stop on stopping <%= app %>
@brand-it
Copy link
Author

brand-it commented Apr 1, 2016

was trying to get redhat 6 and upstart along with foreman to work well together. Really found there is not really a good solution available because of the root user problem that upstart 0.6 has. I have gone threw almost every option and really it comes down to this. If you want to use upstart with redhat 6 you are going to have a lot of work to do. It is not impossible but it is most definitely not as easy as going to redhat 7 and use the newer version of upstart that support non root user features. Really the conclusion is just don't use foreman if you have redhat 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment