On 27.06.2012 09:51, Simon McVittie wrote:

>> 2. I would like to debug this issue or at least gather a useful debug
>> output from the server
> [...]
>>      start-stop-daemon --start --pidfile $PIDFILE --oknodo \
>>         --background --exec $BINARY --startas $DAEMON \
>>         --make-pidfile --chuid $USER \
>>         -- $DAEMON_OPTS > $LOGFILE 2>&1 || return 1
> 
> That will log the output of start-stop-daemon to $LOGFILE.
> Unfortunately, start-stop-daemon doesn't generally output anything - it
> starts openarena-server, puts it in the background and exits.
> 

Oh, that explains a lot.

>> What is the appropriate way to debug the openarena server?
> 
> Either start it by hand (not via the init script), or put a wrapper
> similar to this somewhere (e.g. /usr/local/bin/openarena-server-wrapper):
> 
> #!/bin/sh
> OPENARENA_BACKTRACE=1
> export OPENARENA_BACKTRACE
> exec > /home/user/openarena-server.log 2>&1
> exec /usr/games/openarena-server "$@"
> 
> and modify the init script so it has
> DAEMON=/usr/local/bin/openarena-server-wrapper (or wherever you put it)
> instead of its current value.
> 

Many thanks for your help. I will report back as soon as i have found
something useful.

Regards
Markus


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to