[Groonga-commit] groonga/groonga [master] [centos] make curl path customizable.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 1日 (水) 18:16:45 JST


Kouhei Sutou	2012-02-01 18:16:45 +0900 (Wed, 01 Feb 2012)

  New Revision: 826eb76866208e533168010d9e77e492bad1b9b6

  Log:
    [centos] make curl path customizable.

  Modified files:
    data/init.d/redhat/groonga

  Modified: data/init.d/redhat/groonga (+2 -1)
===================================================================
--- data/init.d/redhat/groonga    2012-02-01 18:16:10 +0900 (7ff278d)
+++ data/init.d/redhat/groonga    2012-02-01 18:16:45 +0900 (6bf51b8)
@@ -23,6 +23,7 @@
 name="groonga"
 prog="groonga"
 groonga=/usr/bin/$prog
+curl=/usr/bin/curl
 USER=groonga
 GROUP=groonga
 DATABASE=/var/lib/groonga/db/db
@@ -131,7 +132,7 @@ restart() {
 
 status() {
 	if [ "${PROTOCOL}" = "http" ]; then
-		/usr/bin/curl "http://${ADDRESS}:${PORT}/d/status"
+		$curl "http://${ADDRESS}:${PORT}/d/status"
 	else
 		$groonga --port $PORT -c $ADDRESS status
 	fi




Groonga-commit メーリングリストの案内
Back to archive index