]> git.pld-linux.org Git - packages/aspseek.git/commitdiff
- for searchd
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 28 Mar 2002 01:02:40 +0000 (01:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aspseek.init -> 1.1

aspseek.init [new file with mode: 0644]

diff --git a/aspseek.init b/aspseek.init
new file mode 100644 (file)
index 0000000..83b7f77
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# aspseek      Aspseek Internet Search Engine
+#
+# chkconfig:   345 75 25
+# description: Advanced Internet search engine
+# processname: searchd
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/sysconfig/aspseek ] && . /etc/sysconfig/aspseek
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+        if [ ! -f /var/lock/subsys/aspseek ]; then
+               msg_starting "aspseek searchd"
+               daemon --user aspseek /usr/sbin/searchd -D -l /var/log/aspseek.log
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aspseek
+       else
+               msg_already_running "aspseek searchd"
+               exit 1
+       fi
+       ;;
+  stop)
+        # Stop daemons.
+       if [ -f /var/lock/subsys/aspseek ]; then
+                msg_stopping "aspseek searchd"
+                killproc /usr/sbin/searchd
+                rm -f /var/lock/subsys/aspseek
+        else
+               msg_not_running "aspseek searchd"
+               exit 1
+       fi
+       ;;
+  status)
+       status aspseek
+       exit $?
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|status}"
+       exit 1
+       ;;
+esac
+
+exit $RETVAL
This page took 0.064289 seconds and 4 git commands to generate.