Go to the source code of this file.
|
stop start stop daemon stop
verbose exec | $DAEMON |
|
start start stop daemon start chuid | games |
|
| PATH |
|
*echo | Usage |
|
stop start stop daemon stop verbose exec $DAEMON |
start start stop daemon start chuid games |
Initial value:=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/
games/crossfire
# The following value is extracted by debstd to figure out how to generate
# the postinst script. Edit the field to change the way the script is
# registered through update-rc.d (see the manpage for update-rc.d!)
FLAGS="defaults 50"
umask 002
case "$1" in
restart|force-reload)
start-stop-daemon --stop --verbose --exec
$DAEMON
echo -n "waiting a bit for the server to stop"
count=0
while test "`ps aux|grep /usr/games/crossfire|wc -l`" -gt 1
do
count=`expr $count + 1`
if [ $count -gt 30 ]
then
echo -n "crossfire not ready, not waiting any longer..."
break
fi
echo -n "."
done
echo
stop start stop daemon stop verbose exec $DAEMON
start start stop daemon start chuid games
Definition at line 9 of file init.d.