sphinx scripts

darcs-hash:20081124044435-099f7-9d7413f0eb27d20dc1bbf912ffd9eccaec17422a.gz
This commit is contained in:
millette
2008-11-23 23:44:35 -05:00
parent f2d9e40787
commit 388e349c25
3 changed files with 63 additions and 0 deletions

15
scripts/sphinx.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
if [[ $1 = "start" ]]
then
echo "Stopping any running daemons..."
/usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
echo "Starting sphinx search daemon..."
/usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null
fi
if [[ $1 = "stop" ]]
then
echo "Stopping sphinx search daemon..."
/usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
fi