[Groonga-commit] droonga/droonga-http-server at 84053d9 [master] Add service script and configuration for CentOS

Back to archive index

long-long-float null+****@clear*****
Fri Sep 5 15:52:10 JST 2014


long-long-float	2014-09-05 15:52:10 +0900 (Fri, 05 Sep 2014)

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

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

  Message:
    Add service script and configuration for CentOS

  Added files:
    script/centos/droonga-http-server
    script/centos/droonga-http-server.yaml

  Added: script/centos/droonga-http-server (+51 -0) 100755
===================================================================
--- /dev/null
+++ script/centos/droonga-http-server    2014-09-05 15:52:10 +0900 (fb1d6bd)
@@ -0,0 +1,51 @@
+#!/bin/bash
+#
+#	/etc/rc.d/init.d/droonga-http-server
+#
+#	<A HTTP Protocol Adapter for Droonga>
+# chkconfig: 2345 20 80
+
+# Source function library.
+. /etc/init.d/functions
+
+NAME=droonga-http-server
+DAEMON=/usr/local/bin/$NAME
+export DROONGA_BASE_DIR=/home/$NAME/droonga
+DAMON_ARGS="--daemon --pid-file=$NAME"
+
+start() {
+	echo -n "Starting $NAME: "
+  daemon $DAEMON $DAEMON_ARGS
+  RET_CODE=$?
+	touch /var/lock/subsys/$NAME
+	return $RET_CODE
+}
+
+stop() {
+	echo -n "Shutting down $NAME: "
+  killproc $DAEMON
+  RET_CODE=$?
+	rm -f /var/lock/subsys/$NAME
+	return $RET_CODE
+}
+
+case "$1" in
+    start)
+	start
+	;;
+    stop)
+	stop
+	;;
+    status)
+      status $NAME
+	;;
+    restart)
+    	stop
+	start
+	;;
+    *)
+	echo "Usage: $NAME {start|stop|status|reload|restart[|probe]"
+	exit 1
+	;;
+esac
+exit $?

  Added: script/centos/droonga-http-server.yaml (+12 -0) 100644
===================================================================
--- /dev/null
+++ script/centos/droonga-http-server.yaml    2014-09-05 15:52:10 +0900 (2753dcf)
@@ -0,0 +1,12 @@
+port:
+access_log_file: droogna-http-server.access.log
+system_log_file: droonga-http-server.system.log
+cache_size: 100
+enable_trust_proxy: false
+environment: production
+engine:
+  host:
+  port:
+  default_dataset:
+  tag:
+  receiver_host:
-------------- next part --------------
HTML����������������������������...
Download 



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