packages: sphinx/sphinx.init - allow override searchd config

glen glen at pld-linux.org
Fri Nov 25 15:26:53 CET 2011


Author: glen                         Date: Fri Nov 25 14:26:52 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- allow override searchd config

---- Files affected:
packages/sphinx:
   sphinx.init (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/sphinx/sphinx.init
diff -u packages/sphinx/sphinx.init:1.7 packages/sphinx/sphinx.init:1.8
--- packages/sphinx/sphinx.init:1.7	Tue Jun  1 20:57:27 2010
+++ packages/sphinx/sphinx.init	Fri Nov 25 15:26:47 2011
@@ -18,6 +18,7 @@
 . /etc/sysconfig/network
 
 # Get service config - may override defaults
+SEARCHD_CONFIG=/etc/sphinx/sphinx.conf
 [ -f /etc/sysconfig/sphinx ] && . /etc/sysconfig/sphinx
 
 # Check that networking is up.
@@ -38,7 +39,7 @@
 	fi
 
 	msg_starting "sphinx searchd"
-    daemon --user sphinx /usr/sbin/searchd --config /etc/sphinx/sphinx.conf
+    daemon --user sphinx /usr/sbin/searchd --config $SEARCHD_CONFIG
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sphinx
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sphinx/sphinx.init?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list