Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > contrib > by-pkgid > b536c6ba70dc10a6a85597f00c3aed71 > files > 1

mnogosearch-stored-3.2.8-1mdk.ppc.rpm

#!/bin/sh
#
# mnogosearch-stored	This shell script takes care of starting and stopping
# stored (optional part of mnoGoSearch engine)
#
# chkconfig: 345 90 60
# description: stored is a deamon which stores gziped version of parsed \
#              documents (html pages, news atricles etc..) 
# probe: true
# processname: stored
# pidfile: /var/run/stored.pid
# config: /etc/mnogosearch/stored.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/stored.conf ] || exit 0

[ -f /usr/sbin/stored ] || 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 stored daemon: "
#	stored & >/dev/null 2>/dev/null 
	stored & >/dev/null 2>&1 
	echo_success
	echo
	touch /var/lock/subsys/stored
	;;
stop)
	echo -n "Shutting down the mnoGoSearch stored daemon: "
	killproc stored
	echo
	rm -f /var/lock/subsys/stored
	;;
status)
	status stored
	;;
restart|reload)
	$0 stop
	$0 start
	;;
condrestart)
	[ -f /var/lock/subsys/stored ] && restart
	;;
  *)
	echo "Usage: mnogosearch-stored {start|stop|status|restart|condrestart|reload}"
	exit 1
esac

exit 0