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