YUKI Hiroshi
null+****@clear*****
Thu Nov 1 16:31:19 JST 2012
YUKI Hiroshi 2012-11-01 16:31:19 +0900 (Thu, 01 Nov 2012) New Revision: f80a21c6fb17da541685917e42c6ee540848e6ae https://github.com/groonga/gcs/commit/f80a21c6fb17da541685917e42c6ee540848e6ae Log: Read default configurations for the gcs daemon,from /etc/default/gcs Modified files: packages/debian/gcs.init packages/debian/gcs.upstart Modified: packages/debian/gcs.init (+7 -1) =================================================================== --- packages/debian/gcs.init 2012-11-01 16:14:00 +0900 (42adce0) +++ packages/debian/gcs.init 2012-11-01 16:31:19 +0900 (a09695a) @@ -40,7 +40,13 @@ DEFAULT_FILE=/etc/default/$NAME [ -x "$FOREVER" ] || exit 0 # Read configuration variable file if it is present -[ -r $DEFAEULT_FILE ] && . $DEFAULT_FILE +if [ -r $DEFAULT_FILE ]; then + . $DEFAULT_FILE + [ "$GCS_DATABASE_PATH" != "" ] && export GCS_DATABASE_PATH + [ "$GCS_PORT" != "" ] && export GCS_PORT + [ "$GCS_BASE_HOST" != "" ] && export GCS_BASE_HOST + [ "$GCS_PRIVILEGED_RANGES" != "" ] && export GCS_PRIVILEGED_RANGES +fi [ "$ENABLE" = "yes" ] || exit 0 Modified: packages/debian/gcs.upstart (+8 -0) =================================================================== --- packages/debian/gcs.upstart 2012-11-01 16:14:00 +0900 (a6eeba0) +++ packages/debian/gcs.upstart 2012-11-01 16:31:19 +0900 (6e9aea6) @@ -12,5 +12,13 @@ setgid gcs script HOME=`echo ~gcs` export HOME + DEFAULT_FILE=/etc/default/gcs + if [ -r $DEFAULT_FILE ]; then + . $DEFAULT_FILE + [ "$GCS_DATABASE_PATH" != "" ] && export GCS_DATABASE_PATH + [ "$GCS_PORT" != "" ] && export GCS_PORT + [ "$GCS_BASE_HOST" != "" ] && export GCS_BASE_HOST + [ "$GCS_PRIVILEGED_RANGES" != "" ] && export GCS_PRIVILEGED_RANGES + fi exec /usr/sbin/gcs end script -------------- next part -------------- HTML����������������������������... 下载