Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37918868
en ru br
Репозитории ALT
S:2.05-alt2.1
5.1: 2.05-alt1
4.1: 2.03-alt2
4.0: 2.03-alt2
3.0: 2.03-alt2
www.altlinux.org/Changes

Группа :: Сети/Прочее
Пакет: whoson

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

#!/bin/sh
#
# whosond Start/Stop whosond server
#
# chkconfig: 345 40 65
# description: whosond - implementation of WHOSON protocol
#
# processname: whosond
# config: /etc/whoson.conf

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

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

# Get network config
. /etc/sysconfig/network

# Get service config
SourceIfNotEmpty /etc/sysconfig/whoson

LOCKFILE=/var/lock/subsys/whosond
RETVAL=0

start()
{
start_daemon --lockfile "$LOCKFILE" --expect-user nobody whosond
RETVAL=$?
return $RETVAL
}

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

restart()
{
stop
start
}

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

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --expect-user nobody whosond
RETVAL=$?
;;
*)
msg_usage "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