[Groonga-commit] droonga/droonga-engine at 952d965 [master] Run as the service user

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 25 12:28:24 JST 2014


YUKI Hiroshi	2014-09-25 12:28:24 +0900 (Thu, 25 Sep 2014)

  New Revision: 952d965e52ea1e644dde449ff2c5b9a12f944d5c
  https://github.com/droonga/droonga-engine/commit/952d965e52ea1e644dde449ff2c5b9a12f944d5c

  Message:
    Run as the service user

  Modified files:
    install/centos/droonga-engine

  Modified: install/centos/droonga-engine (+4 -2)
===================================================================
--- install/centos/droonga-engine    2014-09-25 12:02:30 +0900 (10f964c)
+++ install/centos/droonga-engine    2014-09-25 12:28:24 +0900 (e49d6b1)
@@ -9,15 +9,17 @@
 . /etc/init.d/functions
 
 NAME=droonga-engine
+USER=$NAME
+GROUP=droonga
 DAEMON=/usr/local/bin/$NAME
 export DROONGA_BASE_DIR=/home/$NAME/droonga
-DAEMON_ARGS="--pid-file=$NAME"
+DAEMON_ARGS="--daemon --pid-file=$NAME"
 
 [ -x $DAEMON ] || exit 0
 
 start() {
 	echo -n "Starting $NAME: "
-  daemon $DAEMON $DAEMON_ARGS
+  daemon --user $USER $DAEMON $DAEMON_ARGS
   RET_CODE=$?
   touch /var/lock/subsys/$NAME
 	return $RET_CODE
-------------- next part --------------
HTML����������������������������...
Download 



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