[Groonga-commit] droonga/droonga-http-server at 0973843 [master] Run as the service user

Back to archive index

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


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

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

  Message:
    Run as the service user

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

  Modified: install/centos/droonga-http-server (+3 -1)
===================================================================
--- install/centos/droonga-http-server    2014-09-25 12:24:36 +0900 (fd1ccc7)
+++ install/centos/droonga-http-server    2014-09-25 12:28:58 +0900 (723ce55)
@@ -9,6 +9,8 @@
 . /etc/init.d/functions
 
 NAME=droonga-http-server
+USER=$NAME
+GROUP=droonga
 DAEMON=/usr/bin/$NAME
 export DROONGA_BASE_DIR=/home/$NAME/droonga
 DAEMON_ARGS="--daemon --pid-file=$NAME"
@@ -17,7 +19,7 @@ DAEMON_ARGS="--daemon --pid-file=$NAME"
 
 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