Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37741569
en ru br
ALT Linux repositórios
S:1.16.7-alt2.1
5.0: 1.4.7-alt1
4.1: 1.4.0-alt1
4.0: 1.4.5-alt0.M40.1
3.0: 1.0.1-alt1

Group :: Jogos/Estratégia
RPM: wesnoth

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009