Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2000 21:02:44 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Matt Bedynek <mbedynek@pdq.net>
Cc:        Danny <dannyh@idx.com.au>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Q3 server
Message-ID:  <20000527210244.B5414@dan.emsphone.com>
In-Reply-To: <ABEOKMMKHGJMLKCLKGDDCEDNCAAA.mbedynek@pdq.net>; from "Matt Bedynek" on Sat May 27 19:42:27 GMT 2000
References:  <00052910390804.00361@freebsd.freebsd.org> <ABEOKMMKHGJMLKCLKGDDCEDNCAAA.mbedynek@pdq.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 27), Matt Bedynek said:
> Don't recall off hand, but it was the Linux GLIBC files I believe.
> 
> I installed the latest pointrelease then put the .PK3 files in.
> 
> The server runs perfectly under screen, but I want to detach it as a
> process/daemon.

What I do for my qw server is run a detached screen as part of bootup:

-- /usr/local/etc/rc.d/quake.sh --

#! /usr/local/bin/zsh
echo -n ' quake'
cd ~quake
renice -20 $$
unlimit -h core
unlimit core
echo 'screen -dm sh -c ./qsrv' | su quake

-- qsrv2 --

#! /bin/zsh
# Run our script forever
date
date +"%y-%m-%d %T Restart" >> logfile.qw
if [ -f qf-server.gmon ] ; then
 mv qw-server.gmon qw-server.gmon.$(date +%y%m%d%H%M%S)
fi
./qf-server +gamedir creeper
echo "l64<cdefedcc" > /dev/speaker
sleep 5 
exec ./qsrv2

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000527210244.B5414>