deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1200936 - /incubator/deltacloud/trunk/server/bin/deltacloudd
Date Fri, 11 Nov 2011 16:31:11 GMT
Author: mfojtik
Date: Fri Nov 11 16:31:11 2011
New Revision: 1200936

URL: http://svn.apache.org/viewvc?rev=1200936&view=rev
Log:
Core: Fixed log directory for daemon mode. Added group parameter for deltacloud launcher.

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=1200936&r1=1200935&r2=1200936&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/bin/deltacloudd (original)
+++ incubator/deltacloud/trunk/server/bin/deltacloudd Fri Nov 11 16:31:11 2011
@@ -70,7 +70,8 @@ BANNER
     options[:daemon] = true
   end
   opts.on( '-u', '--user USER', 'User to run daemon as. Use with -d (default: "nobody")')
{ |user| options[:user] = user }
-  opts.on( '', '--pid PID', 'File to store PID (default: tmp/pids/thin.pid)') { |pid| options[:pid]
= pid }
+  opts.on( '-g', '--group GROUP', 'Group to run daemon as. Use with -d (default: "nobody")')
{ |group| options[:group] = group }
+  opts.on( '-b', '--pid PID', 'File to store PID (default: tmp/pids/thin.pid)') { |pid| options[:pid]
= pid }
   opts.on( '-l', '--drivers', 'List available drivers') { |env| options[:drivers] = true
}
   opts.on( '-s', '--ssl', 'Enable SSL (default: disabled)') { |ssl| options[:ssl] = true
}
   opts.on( '-k', '--ssl-key KEY', 'SSL key file to use') { |key| options[:ssl_key] = key
}
@@ -216,6 +217,8 @@ else
     options[:env] = "production"
     argv_opts << [ "--daemonize", "--user", options[:user] || 'nobody', "--tag", "deltacloud-#{ENV['API_DRIVER']}"]
     argv_opts << [ "--pid", options[:pid]] if options[:pid]
+    argv_opts << [ "--group", options[:group] || 'nobody' ]
+    argv_opts << [ "--log", File.join("/var/log/deltacloud-core", "#{ENV['API_PROVIDER']}.log")]
   end
   argv_opts.flatten!
 



Mime
View raw message