3 # aspseek Aspseek Internet Search Engine
6 # description: Advanced Internet search engine
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/aspseek ] && . /etc/sysconfig/aspseek
18 # See how we were called.
21 # Check if the service is already running?
22 if [ ! -f /var/lock/subsys/aspseek ]; then
23 msg_starting "aspseek searchd"
24 daemon --user aspseek /usr/sbin/searchd -D -l /var/log/aspseek.log
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aspseek
28 msg_already_running "aspseek searchd"
34 if [ -f /var/lock/subsys/aspseek ]; then
35 msg_stopping "aspseek searchd"
36 killproc /usr/sbin/searchd
37 rm -f /var/lock/subsys/aspseek
39 msg_not_running "aspseek searchd"
52 msg_usage "$0 {start|stop|restart|status}"