Kouhei Sutou
null+****@clear*****
Thu Aug 22 15:35:38 JST 2013
Kouhei Sutou 2013-08-22 15:35:38 +0900 (Thu, 22 Aug 2013) New Revision: e6b211a75fe56f962599f83528f33232f4cf2610 https://github.com/groonga/groonga/commit/e6b211a75fe56f962599f83528f33232f4cf2610 Message: groonga-httpd-reastart: use service name not executable file name for conf file Modified files: data/scripts/groonga-httpd-restart Modified: data/scripts/groonga-httpd-restart (+6 -5) =================================================================== --- data/scripts/groonga-httpd-restart 2013-08-22 14:59:55 +0900 (5e45494) +++ data/scripts/groonga-httpd-restart 2013-08-22 15:35:38 +0900 (dbb1d97) @@ -1,7 +1,8 @@ #!/bin/sh # -*- indent-tabs-mode: nil; sh-indentation: 4 -*- -GROONGA_HTTPD=groonga-httpd +SERVICE_NAME=groonga-httpd +GROONGA_HTTPD=${SERVICE_NAME} PIDFILE=/var/run/groonga/${GROONGA_HTTPD}.pid OLD_PIDFILE=$PIDFILE.oldbin STATUS_TIMEOUT=3 @@ -9,13 +10,13 @@ STATUS_TIMEOUT=3 # Source function library. if [ -f /lib/lsb/init-functions ]; then . /lib/lsb/init-functions - if [ -f /etc/default/$GROONGA_HTTPD ]; then - . /etc/default/$GROONGA_HTTPD + if [ -f /etc/default/${SERVICE_NAME} ]; then + . /etc/default/${SERVICE_NAME} fi elif [ -f /etc/init.d/functions ]; then . /etc/init.d/functions - if [ -f /etc/sysconfig/$GROONGA_HTTPD ]; then - . /etc/sysconfig/$GROONGA_HTTPD + if [ -f /etc/sysconfig/${SERVICE_NAME} ]; then + . /etc/sysconfig/${SERVICE_NAME} fi fi -------------- next part -------------- HTML����������������������������...Download