Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37735126
en ru br
Репозитории ALT
S:2.3.2-alt4
5.1: 0.9.9-alt1.M51.1
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: sphinx

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/bin/sh
#
# sphinx searchd Free open-source SQL full-text search engine.
#
# chkconfig: - 80 20
# description: starts and stops the sphinx searchd daemon that handles \
# all search requests.
# processname: searchd
# config: /etc/sphinx/sphinx.conf
# pidfile: /var/run/searchd.pid

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

PIDFILE=/var/run/searchd.pid
LOCKFILE=/var/lock/subsys/searchd
RETVAL=0

start()
{
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user _sphinx -- /usr/bin/searchd
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user _sphinx -- /usr/bin/searchd
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

reload()
{
msg_reloading sphinx
stop_daemon --pidfile "$PIDFILE" --expect-user _sphinx -HUP -- /usr/bin/searchd
RETVAL=$?
return $RETVAL
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --pidfile "$PIDFILE" --expect-user _sphinx -- /usr/bin/searchd
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac

exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin