bin/ner-daemon in opener-ner-2.1.0 vs bin/ner-daemon in opener-ner-3.0.0
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
require 'opener/daemons'
-exec_path = File.expand_path('../../exec/ner.rb', __FILE__)
+controller = Opener::Daemons::Controller.new(
+ :name => 'opener-ner',
+ :exec_path => File.expand_path('../../exec/ner.rb', __FILE__)
+)
-Opener::Daemons::Controller.new(
- :name => 'ner',
- :exec_path => exec_path
-)
\ No newline at end of file
+controller.run