Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37769614
en ru br
Репозитории ALT
S:1.4.71-alt1
5.1: 1.4.35-alt0.M51.1
4.1: 1.4.20-alt0.M41.1
4.0: 1.4.25-alt0.svn.2710.M40.1
+updates:1.4.19-alt1.M40.1
3.0:
+backports:1.4.9-alt0.M30.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: lighttpd

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

#!/bin/sh
#
# lighttpd Startup script for the lighttpd server
#
# chkconfig: - 85 15
# description: Lightning fast webserver with light system requirements
#
# processname: lighttpd
# config: /etc/lighttpd/lighttpd.conf
# config: /etc/sysconfig/lighttpd
# pidfile: /var/run/lighttpd.pid
#

WITHOUT_RC_COMPAT=1

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

if [ -f /etc/sysconfig/lighttpd ]; then
. /etc/sysconfig/lighttpd
fi

if [ -z "$LIGHTTPD_CONF_PATH" ]; then
LIGHTTPD_CONF_PATH="/etc/lighttpd/lighttpd.conf"
fi

PIDFILE=/var/run/lighttpd.pid
LOCKFILE=/var/lock/lighttpd
RETVAL=0

start() {
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" \
--expect-user lighttpd --name lighttpd -- lighttpd -f $LIGHTTPD_CONF_PATH
RETVAL=$?
return $RETVAL
}

stop() {
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" \
--expect-user lighttpd --name lighttpd -- lighttpd
RETVAL=$?
return $RETVAL
}

reload() {
msg_reloading $prog
stop_daemon --pidfile "$PIDFILE" \
--expect-user lighttpd --name lighttpd -INT -- lighttpd
RETVAL=$?
return $RETVAL
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -f "$LOCKFILE" ]; then
stop
start
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
reload)
reload
;;
status)
status --pidfile "$PIDFILE" --expect-user lighttpd \
--name lighttpd -- lighttpd
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|restart|condstop|condrestart|condreload|reload|status}"
RETVAL=1
esac

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