Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'daemons'
- options = {
- :app_name => "task_server",
- :dir_mode => :script,
- :dir => "../log", # where the log/PID file will be dropped
- :ontop => false, # should be false
- :mode => :exec,
- :backtrace => true,
- :log_output => true
- }
- Daemons.run(File.join(File.dirname(__FILE__), 'task_server.rb'), options)
Add Comment
Please, Sign In to add comment