[Groonga-commit] droonga/droonga-http-server at a6bd2f6 [master] Fix path of PID file

Back to archive index

long-long-float null+****@clear*****
Sat Sep 6 16:28:46 JST 2014


long-long-float	2014-09-06 16:28:46 +0900 (Sat, 06 Sep 2014)

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

  Merged 8c35f93: Merge pull request #3 from long-long-float/install-script

  Message:
    Fix path of PID file
    
    `droonga-http-server` only works when it's be specified in the full
    path.

  Modified files:
    script/centos/droonga-http-server

  Modified: script/centos/droonga-http-server (+4 -1)
===================================================================
--- script/centos/droonga-http-server    2014-09-06 16:27:04 +0900 (5169170)
+++ script/centos/droonga-http-server    2014-09-06 16:28:46 +0900 (0883056)
@@ -11,7 +11,10 @@
 NAME=droonga-http-server
 DAEMON=/usr/bin/$NAME
 export DROONGA_BASE_DIR=/home/$NAME/droonga
-DAMON_ARGS="--daemon --pid-file=$NAME"
+PID_FILE=$DROONGA_BASE_DIR/$NAME.pid
+DAEMON_ARGS="--daemon --pid-file=$PID_FILE"
+
+[ -x $DAEMON ] || exit 0
 
 start() {
 	echo -n "Starting $NAME: "
-------------- next part --------------
HTML����������������������������...
Télécharger 



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