summaryrefslogtreecommitdiff
path: root/scripts/sphinx.sh
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-23 23:44:35 -0500
committermillette <millette@controlyourself.ca>2008-11-23 23:44:35 -0500
commit388e349c25c7a3964ea399dbd49b8e6abd2e3ad5 (patch)
tree22e7e9cfff0b8283b6ba26c9bd0a53c81be4df32 /scripts/sphinx.sh
parentf2d9e40787c531e62ccf2bb4d07f1189e674e50a (diff)
sphinx scripts
darcs-hash:20081124044435-099f7-9d7413f0eb27d20dc1bbf912ffd9eccaec17422a.gz
Diffstat (limited to 'scripts/sphinx.sh')
-rwxr-xr-xscripts/sphinx.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/sphinx.sh b/scripts/sphinx.sh
new file mode 100755
index 000000000..b8edeb302
--- /dev/null
+++ b/scripts/sphinx.sh
@@ -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