Mercurial > ~darius > hgwebdir.cgi > paradise_server
view bin/ntstop @ 13:ed82a42ba89d
Added code to cause missiles, fighters and plasmas to get confused in
nebulous terrain. If it gets confused then it picks a random direction
to go.
author | darius |
---|---|
date | Sat, 06 Dec 1997 06:27:03 +0000 |
parents | 4d6502ffaa5e |
children |
line wrap: on
line source
#!/bin/sh # # shut down the server # # since we don't know who may execute this (if it is called from the system # upon a machine shutdown, for instance), use ../directory notation # rather than ${NETREKDIR}, assuming it is executed in ${NETREKDIR}/bin # # This will blast the daemon and listen process, it will NOT blast any # ntserv processes (wait for them to disconnect or do these by hand) # # if an argument exists it is taken as the NETREKDIR # if [ X$1 != X ]; then NETREKDIR=$1 elif [ X${NETREKDIR} = X ]; then if [ -f "../etc/conf.netrekdir" ]; then NETREKDIR=`cat "../etc/conf.netrekdir"` else echo "No NETREKDIR variable found, exiting." exit 1 fi fi SYSTEM=`hostname` echo "" > /tmp/$$.ntstop echo "${USER}@${SYSTEM}: ******* IMMINENT SYSTEM SHUTDOWN! *******" >> /tmp/$$.ntstop echo "${USER}@${SYSTEM}: ******* IMMINENT SYSTEM SHUTDOWN! *******" >> /tmp/$$.ntstop echo "" >> /tmp/$$.ntstop ${NETREKDIR}/bin/mes A -w < /tmp/$$.ntstop rm /tmp/$$.ntstop /bin/kill `cat ${NETREKDIR}/logs/listen.pid` 2> /dev/null /bin/kill `cat ${NETREKDIR}/logs/daemonII.pid` 2> /dev/null