You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/09/21 16:45:59 UTC

svn commit: r1173686 - /incubator/deltacloud/trunk/server/bin/deltacloudd

Author: mfojtik
Date: Wed Sep 21 14:45:59 2011
New Revision: 1173686

URL: http://svn.apache.org/viewvc?rev=1173686&view=rev
Log:
Core: Fixed deltacloudd script to work in RPM install directory

Modified:
    incubator/deltacloud/trunk/server/bin/deltacloudd

Modified: incubator/deltacloud/trunk/server/bin/deltacloudd
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/bin/deltacloudd?rev=1173686&r1=1173685&r2=1173686&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/bin/deltacloudd (original)
+++ incubator/deltacloud/trunk/server/bin/deltacloudd Wed Sep 21 14:45:59 2011
@@ -195,7 +195,7 @@ else
   argv_opts << ['start'] unless Thin::Runner.commands.include?(options[0])
   argv_opts << ['--address', ENV["API_HOST"] ]
   argv_opts << ['--port', ENV["API_PORT"] ]
-  argv_opts << ['--rackup', 'config.ru' ]
+  argv_opts << ['--rackup', File.join(dirname, 'config.ru') ]
   argv_opts << ['-e', options[:env] ]
   argv_opts << ['--timeout', ENV["API_TIMEOUT"] || '60']
   argv_opts << ['--threaded', '-D' ]
@@ -218,6 +218,7 @@ else
     rerun.start
     rerun.join
   else
+    $:.unshift File.join(dirname)
     thin = Thin::Runner.new(argv_opts)
     thin.run!
   end