Skip to content

Commit

Permalink
[Completes #37188835] Daemonize PDF Filler service on staging server
Browse files Browse the repository at this point in the history
  • Loading branch information
greggersh committed Oct 5, 2012
1 parent a520506 commit a101233
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions daemon.rb
@@ -0,0 +1,8 @@
require 'rubygems'
require 'daemons'

pwd = Dir.pwd
Daemons.run_proc('app.rb', {:dir_mode => :normal, :dir => "/var/run/sinatra"}) do
Dir.chdir(pwd)
exec "ruby app.rb"
end

0 comments on commit a101233

Please sign in to comment.