packages: sphinx/sphinx.init - add reload action

glen glen at pld-linux.org
Tue Jun 1 20:57:32 CEST 2010


Author: glen                         Date: Tue Jun  1 18:57:32 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add reload action

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

---- Diffs:

================================================================
Index: packages/sphinx/sphinx.init
diff -u packages/sphinx/sphinx.init:1.6 packages/sphinx/sphinx.init:1.7
--- packages/sphinx/sphinx.init:1.6	Mon Apr 12 13:53:48 2010
+++ packages/sphinx/sphinx.init	Tue Jun  1 20:57:27 2010
@@ -55,6 +55,18 @@
 	rm -f /var/lock/subsys/sphinx
 }
 
+reload() {
+	if [ ! -f /var/lock/subsys/sphinx ]; then
+		msg_not_running "sphinx searchd"
+		RETVAL=7
+		return
+	fi
+
+	msg_reloading "sphinx searchd"
+	killproc searchd -HUP
+	RETVAL=$?
+}
+
 condrestart() {
 	if [ ! -f /var/lock/subsys/sphinx ]; then
 		msg_not_running "sphinx searchd"
@@ -82,8 +94,8 @@
   try-restart)
 	condrestart 0
 	;;
-  force-reload)
-	condrestart 7
+  reload|force-reload)
+  	reload
 	;;
   status)
 	status sphinx searchd
================================================================

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



More information about the pld-cvs-commit mailing list