3 # mnogosearch-stored This shell script takes care of starting and stopping
4 # stored (optional part of mnogosearch engine)
6 # description: stored is a deamon which stores gziped version of parsed
7 # documents (html pages, news atricles etc..)
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
15 LOGFILE=/var/log/mnogosearch-stored
18 [ -f /etc/sysconfig/mnogosearch-stored ] && . /etc/sysconfig/mnogosearch-stored
20 # Check that networking is up.
21 if is_no "${NETWORKING}"; then
22 msg_Network_Down Mnogosearch-stored
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/mnogosearch-stored ]; then
34 # build aliases database
36 msg_starting Mnogosearch-stored
38 /usr/sbin/stored 2>&1 > $LOGFILE &
41 if ps ax | grep -v grep | grep -q stored
45 touch /var/lock/subsys/mnogosearch-stored
52 msg_Already_Running Mnogosearch-stored
58 msg_stopping Mnogosearch-stored
60 rm -f /var/lock/subsys/mnogosearch-stored
71 msg_Usage "$0 {start|stop|status|restart|reload}"