Guest User

Untitled

a guest
Apr 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. require 'rubygems'
  2. require 'daemons'
  3.  
  4. options = {
  5. :app_name => "task_server",
  6. :dir_mode => :script,
  7. :dir => "../log", # where the log/PID file will be dropped
  8. :ontop => false, # should be false
  9. :mode => :exec,
  10. :backtrace => true,
  11. :log_output => true
  12. }
  13.  
  14. Daemons.run(File.join(File.dirname(__FILE__), 'task_server.rb'), options)
Add Comment
Please, Sign In to add comment