sphinx.sh 428 B

12345678910111213141516
  1. #!/bin/bash
  2. if [[ $1 = "start" ]]
  3. then
  4. echo "Stopping any running daemons..."
  5. /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
  6. echo "Starting sphinx search daemon..."
  7. /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null
  8. fi
  9. if [[ $1 = "stop" ]]
  10. then
  11. echo "Stopping sphinx search daemon..."
  12. /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null
  13. fi