]> git.pld-linux.org Git - packages/aspseek.git/blame - aspseek.init
- tabs in preamble
[packages/aspseek.git] / aspseek.init
CommitLineData
d7f4e7e8
AM
1#!/bin/sh
2#
3# aspseek Aspseek Internet Search Engine
4#
5# chkconfig: 345 75 25
6# description: Advanced Internet search engine
7# processname: searchd
8
9# Source function library
10. /etc/rc.d/init.d/functions
11
d7f4e7e8
AM
12# Get service config
13[ -f /etc/sysconfig/aspseek ] && . /etc/sysconfig/aspseek
14
f49469cf 15RETVAL=0
d7f4e7e8
AM
16# See how we were called.
17case "$1" in
18 start)
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
23 RETVAL=$?
24 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aspseek
25 else
26 msg_already_running "aspseek searchd"
d7f4e7e8
AM
27 fi
28 ;;
29 stop)
30 # Stop daemons.
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
35 else
36 msg_not_running "aspseek searchd"
d7f4e7e8
AM
37 fi
38 ;;
39 status)
40 status aspseek
41 exit $?
42 ;;
f49469cf 43 restart|force-reload)
d7f4e7e8
AM
44 $0 stop
45 $0 start
f49469cf 46 exit $?
d7f4e7e8
AM
47 ;;
48 *)
f49469cf 49 msg_usage "$0 {start|stop|restart|force-reload|status}"
50 exit 3
d7f4e7e8
AM
51 ;;
52esac
53
54exit $RETVAL
This page took 0.116681 seconds and 4 git commands to generate.