You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/04/08 14:10:57 UTC

[PATCH core] Added possibility to pass additional Thin options using --thin parameter

From: Michal Fojtik <mf...@redhat.com>

---
 server/bin/deltacloudd |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index addb1f5..8c15d1c 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -40,6 +40,7 @@ BANNER
     ENV['API_PROVIDER'] = provider
   end
   opts.on( '-e', '--env ENV', 'Environment (default: "development")') { |env| options[:env] = env }
+  opts.on( '-t', '--thin OPTIONS', 'Additional thin options ("--ssl --pid FILENAME")') { |opt| options[:thin] = opt}
   opts.on( '-h', '--help', '') { options[:help] = true }
 end
 
@@ -106,10 +107,13 @@ else
   argv_opts << ['--chdir', dirname ]
   argv_opts << ['-e', options[:env] ]
   argv_opts << ['--timeout', '60']
-  argv_opts << ['--threaded', '-D', '--stats', '/stats']
-
+  argv_opts << ['--threaded', '-D']
   argv_opts.flatten!
 
+  if options[:thin]
+    argv_opts << "#{options[:thin]}"
+  end
+
   if have_rerun && options[:env] == "development"
     argv_opts.unshift "thin"
     command = argv_opts.join(" ")
-- 
1.7.4.1


Re: [PATCH core] Added possibility to pass additional Thin options using --thin parameter

Posted by David Lutterkort <lu...@redhat.com>.
On Fri, 2011-04-08 at 14:10 +0200, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
> 
> ---
>  server/bin/deltacloudd |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

ACK