summaryrefslogtreecommitdiff
path: root/plugins/SphinxSearch/scripts/sphinx.sh
blob: b8edeb302cf29f3cbc9d56362c4cf08be106c01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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