]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - scripts/sphinx.sh
add some indices for performance
[quix0rs-gnu-social.git] / scripts / sphinx.sh
1 #!/bin/bash
2
3 if [[ $1 = "start" ]]
4 then
5         echo "Stopping any running daemons..."
6         /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
7         echo "Starting sphinx search daemon..."
8         /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null
9 fi
10
11 if [[ $1 = "stop" ]]
12 then
13         echo "Stopping sphinx search daemon..."
14         /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
15 fi