[Groonga-commit] droonga/droonga-engine at 6333412 [master] Run daemon as the service user

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 25 11:32:24 JST 2014


YUKI Hiroshi	2014-09-25 11:32:24 +0900 (Thu, 25 Sep 2014)

  New Revision: 63334122a0a87ee0df61ca68bdf68ec61602e178
  https://github.com/droonga/droonga-engine/commit/63334122a0a87ee0df61ca68bdf68ec61602e178

  Message:
    Run daemon as the service user

  Modified files:
    install/debian/droonga-engine

  Modified: install/debian/droonga-engine (+2 -2)
===================================================================
--- install/debian/droonga-engine    2014-09-25 11:32:02 +0900 (d0fceb5)
+++ install/debian/droonga-engine    2014-09-25 11:32:24 +0900 (c358e98)
@@ -45,9 +45,9 @@ do_start()
 	#   0 if daemon has been started
 	#   1 if daemon was already running
 	#   2 if daemon could not be started
-	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --user $USER  --test > /dev/null \
 		|| return 1
-	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --user $USER --chuid $USER:$GROUP --chdir $DROONGA_BASE_DIR -- \
 		$DAEMON_ARGS \
 		|| return 2
 	# Add code here, if necessary, that waits for the process to be ready
-------------- next part --------------
HTML����������������������������...
Download 



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