3 # This file was automatically customized by debmake on Sun, 11 Oct 1998 18:12:42 -0700
5 # Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
6 # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
7 # Modified for Debian by Christoph Lameter <clameter@debian.org>
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
10 DAEMON=/usr/
games/crossfire
11 # The following value is extracted by debstd to figure out how to generate
12 # the postinst script. Edit the field to change the way the script is
13 # registered through update-rc.d (see the manpage for update-rc.d!)
22 start-stop-daemon --stop --verbose --exec
$DAEMON
23 echo -n
"waiting a bit for the server to stop"
25 while test
"`ps aux|grep /usr/games/crossfire|wc -l`" -gt 1
27 count=`expr $count + 1`
30 echo -n
"crossfire not ready, not waiting any longer..."
43 start-stop-daemon --stop --verbose --exec
$DAEMON
46 echo
"Usage: /etc/init.d/crossfire {start|stop|restart}"
stop start stop daemon stop verbose exec $DAEMON
start start stop daemon start chuid games