Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > bebff3570faee357416d2588192a229a > files > 137

mnogosearch-3.2.8-1mdk.ppc.rpm

#!/bin/sh
#
# mnogosearch-cached          Start/Stop the mnoGoSearch indexing daemon.
#
# chkconfig: 345 90 60
# description: cached is the mnoGoSearch cache mode daemon that accepts \
#              connections from the indexer and orders data into raw files \
#              for subsequent processing by the splitter. 
# probe: true
# processname: cached
# pidfile: /var/run/cached.pid
# config: /etc/mnogosearch/indexer.conf

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

[ -f /etc/mnogosearch/indexer.conf ] || exit 0

[ -f /usr/sbin/indexer ] || exit 0
[ -f /usr/sbin/cached ] || exit 0

UDM_CONF_DIR="/etc/mnogosearch"; export UDM_CONF_DIR

# See how we were called.
case "$1" in
start)
	echo -n "Starting the mnoGoSearch indexing daemon: "
	cached -v 1 & >/dev/null 2>/dev/null 
	echo_success
	echo
	touch /var/lock/subsys/cached
	;;
stop)
	echo -n "Shutting down the mnoGoSearch indexing daemon: "
	killproc cached
	echo
	rm -f /var/lock/subsys/cached
	;;
status)
	status cached
	;;
restart|reload)
	$0 stop
	$0 start
	;;
condrestart)
	[ -f /var/lock/subsys/cached ] && restart
	;;
  *)
	echo "Usage: mnogosearch-cached {start|stop|status|restart|condrestart|reload}"
	exit 1
esac

exit 0