Created
April 1, 2016 00:18
-
-
Save brand-it/88a08647e0e85323eec1c3cfc381914d to your computer and use it in GitHub Desktop.
This file contains 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
start on runlevel [2345] | |
stop on runlevel [!2345] |
This file contains 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
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 |
This file contains 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
start on starting <%= app %> | |
stop on stopping <%= app %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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