Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.37 1998/06/18 01:13:09 grubba Exp $ + # $Id: start,v 1.38 1998/07/02 13:01:06 grubba Exp $      VERSION=202; BETA=.b;      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike      # Enable threads (if available) on Solaris.
Roxen.git/server/start:193:      ./mkdir -p $LOGDIR/debug/      if [ -z "$debug" ] ; then    DEBUG="-DMODULE_DEBUG";   else    DEBUG="-DDEBUG -DMODULE_DEBUG -DDEVELOPER -DMAC_DEBUG"   fi      if [ -z "$once" ] ; then +  cat << oo + Using configuration from $DIR, storing the debug log in $LOGDIR/debug/$FILES.1 + You can use the configuration interface in the server to get debug info. + oo +  +  # Try to get rid of some fd's. +  # Some /bin/sh's have problems detaching otherwise. +  +  exec >/dev/null +  exec 2>/dev/null +  exec </dev/null +     (while : ; do    echo $$: "Server restart at `date`"    echo $$: "Debug log in $LOGDIR/debug/$FILES.1"    rotate $LOGDIR/debug/$FILES       start_roxen 2>>$LOGDIR/debug/$FILES.1 1>&2       exitcode="$?"       if [ "$exitcode" -eq "0" ] ; then
Roxen.git/server/start:220:    else    # Restart. Sleep a few seconds before restarting.    echo $$: Roxen died. Restarting in 5 seconds...    sleep 5    fi    done       echo $$: Not Reached "famous last words"       ) < /dev/null > $LOGDIR/debug/start_$FILES.output 2>&1 & -  cat << oo - Using configuration from $DIR, storing the debug log in $LOGDIR/debug/$FILES.1 - You can use the configuration interface in the server to get debug info. - oo +       else    echo $$: "Server restart at `date`"    start_roxen   fi