[Groonga-commit] droonga/droonga-http-server at 0119389 [master] Unsupport "--no-daemon" option.

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 5 15:07:37 JST 2014


YUKI Hiroshi	2014-11-05 15:07:37 +0900 (Wed, 05 Nov 2014)

  New Revision: 0119389016a2a2f0edc94702c350e33eae23480f
  https://github.com/droonga/droonga-http-server/commit/0119389016a2a2f0edc94702c350e33eae23480f

  Message:
    Unsupport "--no-daemon" option.
    
    It is now obsolete because "daemon"'s default value is always false.

  Modified files:
    lib/server-options.js

  Modified: lib/server-options.js (+5 -10)
===================================================================
--- lib/server-options.js    2014-11-05 15:07:22 +0900 (ed77ecb)
+++ lib/server-options.js    2014-11-05 15:07:37 +0900 (f39d537)
@@ -90,21 +90,13 @@ function define() {
       'Enable "trust proxy" configuration. It is required when you run droonga-http-server behind a reverse proxy. ' +
         '(' + options.enableTrustProxy + ')');
   add('--disable-trust-proxy',
-      'Inverted option of --enable-trust-proxy.',
-      generateOptionHandler(function(newValue) {
-        options.enableTrustProxy = !newValue;
-      }));
+      'Inverted option of --enable-trust-proxy.');
   add('--plugins <plugin1,plugin2,...>',
       'Use specified plugins. ' +
         '(' + options.plugins.join(',') + ')',
       pluginsOption);
   add('--daemon',
       'Run as a daemon. (' + options.daemon + ')');
-  add('--no-daemon',
-      'Inverted option of --daemon.',
-      generateOptionHandler(function(newValue) {
-        options.daemon = !newValue;
-      }));
   add('--pid-file <pid-file>',
       'Output PID to <pid-file>.');
   add('--environment <environment>',
@@ -114,6 +106,9 @@ function define() {
 exports.define = define;
 
 function parse(argv) {
-  return options.parse(argv);
+  var parsedOptions = options.parse(argv);
+  if (parsedOptions.disableTrustProxy)
+    parsedOptions.enableTrustProxy = false;
+  return parsedOptions;
 }
 exports.parse = parse;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index