[Groonga-commit] groonga/gcs [master] Define default configuration of the gcs daemon started via init.d by /etc/default/gcs

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 1 16:14:00 JST 2012


YUKI Hiroshi	2012-11-01 16:14:00 +0900 (Thu, 01 Nov 2012)

  New Revision: 92446cfa53950a0b9369e75ef6d52ac6cf318559
  https://github.com/groonga/gcs/commit/92446cfa53950a0b9369e75ef6d52ac6cf318559

  Log:
    Define default configuration of the gcs daemon started via init.d by /etc/default/gcs

  Modified files:
    packages/debian/gcs.default
    packages/debian/gcs.init

  Modified: packages/debian/gcs.default (+21 -2)
===================================================================
--- packages/debian/gcs.default    2012-11-01 16:11:33 +0900 (3a4e7f5)
+++ packages/debian/gcs.default    2012-11-01 16:14:00 +0900 (3b1a21b)
@@ -1,7 +1,26 @@
-# Default
+# Settings of Groonga CloudSearch daemon
+
+# The user and the group to run the daemon
 #USER=gcs
 #GROUP=gcs
-#PORT=7575
+
+# The location of the database
+#GCS_DATABASE_PATH=$(echo ~gcs)/.gcs/database/gcs
+
+# The port number to listen
+#GCS_PORT=7575
+
+# The base host and port of endpoints returned as a part of DomainStatus.
+# For example, if you set as "GCS_BASE_HOST=example.com:7575", then the
+# document endpoint of a domain named "mysearchdomain" will be returned like:
+#   "doc-mysearchdomain-xxxxxx.example.com:7575"
+#GCS_BASE_HOST=127.0.0.1.xip.io:7575
+
+# Privileged IP range for the configuration API. Any request from out of
+# the range is denied.
+# You can specify multiple ranges as comma-separated list like:
+#   "GCS_PRIVILEGED_RANGES=127.0.0.0/8,192.168.0.0/24"
+#GCS_PRIVILEGED_RANGES=127.0.0.0/8
 
 # Comment out this to disable Groonga CloudSearch daemon.
 ENABLE=yes

  Modified: packages/debian/gcs.init (+0 -4)
===================================================================
--- packages/debian/gcs.init    2012-11-01 16:11:33 +0900 (8091d68)
+++ packages/debian/gcs.init    2012-11-01 16:14:00 +0900 (42adce0)
@@ -24,7 +24,6 @@ FOREVER=$LIB_DIR/gcs/node_modules/.bin/forever
 LOG_DIR=/var/log/$NAME
 USER=gcs
 GROUP=gcs
-PORT=7575
 PIDFILE=/var/run/gcs/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 NODE_ENV=production
@@ -50,9 +49,6 @@ FOREVER_ARGS="$FOREVER_ARGS -l $LOG_DIR/forever.log"
 FOREVER_ARGS="$FOREVER_ARGS -o $LOG_DIR/output.log"
 FOREVER_ARGS="$FOREVER_ARGS -e $LOG_DIR/error.log"
 DAEMON_ARGS=""
-if [ -n "${PORT}" ]; then
-    DAEMON_ARGS="${DAEMON_ARGS} --port ${PORT}"
-fi
 
 mkdir -p $(dirname ${PIDFILE})
 if [ -n "${USER}" ]; then
-------------- next part --------------
HTML����������������������������...
Download 



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