Skip to content

Instantly share code, notes, and snippets.

@AnalogJ
Created October 10, 2013 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnalogJ/6913922 to your computer and use it in GitHub Desktop.
Save AnalogJ/6913922 to your computer and use it in GitHub Desktop.
Daemons, init.d, symlinks, Control file
#!/usr/bin/env ruby
$: << File.expand_path(File.dirname(File.realpath(__FILE__)))
$: << File.expand_path(File.dirname(File.symlink?(__FILE__) ? File.readlink(__F$
require 'rubygems'
require 'daemons'
require 'bundler'
puts File.expand_path(File.dirname(File.realpath(__FILE__)))
ENV['BUNDLE_GEMFILE'] = File.expand_path('Gemfile',File.dirname(File.realpath(_$
Bundler.require
Daemons.run(File.expand_path('hub_notify_handler.rb',File.dirname(File.realpath$
#Daemons.run('hub_notify_handler.rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment