Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37562397
en ru br
Репозитории ALT
S:1.16.7-alt2.1
5.1: 1.8.0-alt0.M51.1
4.1: 1.4.0-alt1
4.0: 1.4.5-alt0.M40.1
3.0: 1.0.1-alt1
www.altlinux.org/Changes

Группа :: Игры/Стратегия
Пакет: wesnoth

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

#! /bin/sh
#
# wesnothd Wesnoth server
#
# chkconfig: 345 98 02
#
# description: This is a 'Battle for Wesnoth' daemon
#
# Modified for ALTLinux
# by Gleb Stiblo <errandir@gmail.com>
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

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

DAEMON=/usr/games/wesnothd
NAME=wesnothd
LOCKFILE=/var/lock/subsys/wesnothd
PIDFILE=/var/run/wesnothd.pid
RETVAL=0

test -x $DAEMON || exit 0

# Include wesnoth defaults if available
#if [ -f /etc/default/wesnoth ] ; then
# . /etc/default/wesnoth
#fi

#set -e

start()
{
start_daemon --make-pidfile $PIDFILE --pidfile $PIDFILE --name $NAME -- $DAEMON
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --pidfile $PIDFILE --name $NAME -- $DAEMON

RETVAL=$?
return $RETVAL
}

restart()
{
stop
sleep 1
start
}

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

exit $RETVAL

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