Skip to content

Instantly share code, notes, and snippets.

@dylanegan
Created March 2, 2009 02:38
Show Gist options
  • Save dylanegan/72586 to your computer and use it in GitHub Desktop.
Save dylanegan/72586 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'daemons'
workling = File.join(File.dirname(__FILE__), '..', 'vendor', 'plugins', 'workling', 'script', 'listen.rb')
options = {
:app_name => "workling",
:ARGV => ARGV,
:dir_mode => :normal,
:dir => File.join(File.dirname(__FILE__), '..', 'log'),
:log_output => true,
:multiple => false,
:backtrace => true,
:monitor => false
}
TCPServer.new(8888) if ARGV[0] == "start"
Daemons.run(workling, options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment