Navigation Menu

Skip to content

Commit

Permalink
Specify absolute path for pid file and log file
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent b4816d3 commit b6e74e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions _po/ja/tutorial/1.0.4/groonga/index.po
Expand Up @@ -246,17 +246,19 @@ msgstr "サービスを起動するには、各Droongaノードで以下のよ
msgid ""
" # cd ~/droonga\n"
" # host=192.168.0.10\n"
" # DROONGA_BASE_DIR=$PWD\n"
" # droonga-engine --host=$host \\\n"
" --log-file=$PWD/droonga-engine.log \\\n"
" --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n"
" --daemon \\\n"
" --pid-file=$PWD/droonga-engine.pid\n"
" --pid-file=$DROONGA_BASE_DIR/droonga-engine.pid\n"
" # env NODE_ENV=production \\\n"
" droonga-http-server --port=10041 \\\n"
" --receive-host-name=$host \\\n"
" --droonga-engine-host-name=$host \\\n"
" --cache-size=-1 \\\n"
" --daemon \\\n"
" --pid-file=$PWD/droonga-http-server.pid"
" --pid-file=$DROONGA_BASE_DIR/droonga-http-server.p"
"id"
msgstr ""

msgid ""
Expand Down
7 changes: 4 additions & 3 deletions ja/tutorial/1.0.4/groonga/index.md
Expand Up @@ -118,17 +118,18 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ

# cd ~/droonga
# host=192.168.0.10
# DROONGA_BASE_DIR=$PWD
# droonga-engine --host=$host \
--log-file=$PWD/droonga-engine.log \
--log-file=$DROONGA_BASE_DIR/droonga-engine.log \
--daemon \
--pid-file=$PWD/droonga-engine.pid
--pid-file=$DROONGA_BASE_DIR/droonga-engine.pid
# env NODE_ENV=production \
droonga-http-server --port=10041 \
--receive-host-name=$host \
--droonga-engine-host-name=$host \
--cache-size=-1 \
--daemon \
--pid-file=$PWD/droonga-http-server.pid
--pid-file=$DROONGA_BASE_DIR/droonga-http-server.pid

いくつかのオプションにおいて、そのDroongaノード自身のホスト名を指定する必要がある事に注意して下さい。
この情報は、クラスタ内の他のDroongaノードとの通信のために使われます。
Expand Down
7 changes: 4 additions & 3 deletions tutorial/1.0.4/groonga/index.md
Expand Up @@ -109,17 +109,18 @@ To start them, run commands like following on each Droonga node:

# cd ~/droonga
# host=192.168.0.10
# DROONGA_BASE_DIR=$PWD
# droonga-engine --host=$host \
--log-file=$PWD/droonga-engine.log \
--log-file=$DROONGA_BASE_DIR/droonga-engine.log \
--daemon \
--pid-file=$PWD/droonga-engine.pid
--pid-file=$DROONGA_BASE_DIR/droonga-engine.pid
# env NODE_ENV=production \
droonga-http-server --port=10041 \
--receive-host-name=$host \
--droonga-engine-host-name=$host \
--cache-size=-1 \
--daemon \
--pid-file=$PWD/droonga-http-server.pid
--pid-file=$DROONGA_BASE_DIR/droonga-http-server.pid

Note that you have to specify the host name of the Droonga node itself via some options.
It will be used to communicate with other Droonga nodes in the cluster.
Expand Down

0 comments on commit b6e74e9

Please sign in to comment.