Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37400992
en ru br
Репозитории ALT
S:2.3.15-alt6
5.1: 2.3.14-alt3
4.1: 2.3.14-alt3
4.0: 2.3.14-alt2
3.0: 2.3.13-alt4
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: xinetd

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

#!/bin/sh
#
# chkconfig: 345 50 50
# description: xinetd is a powerful replacement for inetd. \
# xinetd has access control machanisms, extensive logging \
# capabilities, the ability to make services available based \
# on time, and can place limits on the number of servers \
# that can be started, among other things.
#
# processname: xinetd
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid

WITHOUT_RC_COMPAT=1

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

# Source networking configuration.
SourceIfNotEmpty /etc/sysconfig/network

# Source config.
SourceIfNotEmpty /etc/sysconfig/xinetd

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

start()
{
is_yes "$NETWORKING" || return 0
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- xinetd $EXTRAOPTIONS
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --lockfile "$LOCKFILE" --expect-user root xinetd
RETVAL=$?
return $RETVAL
}

reload()
{
msg_reloading xinetd
stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP xinetd
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

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

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