Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.51 1998/10/16 17:48:37 grubba Exp $ + # $Id: start,v 1.52 1998/10/31 23:43:48 grubba Exp $      VERSION=202; BETA=.b;      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike -  + extra_args=""      # Enable threads (if available) on Solaris.   # Most other OS's have thread bugs that cause them or Roxen to crash.   if uname | grep 'SunOS' >/dev/null 2>&1; then    if uname -r | grep '5\.[5-9]' >/dev/null 2>&1; then    if [ x"$1" != "x--help" ] ; then    echo 'Solaris 2.5 or later detected. Enabling threads (if available).'    fi    DEFINES="$DEFINES -DENABLE_THREADS"    fi
Roxen.git/server/start:113:    --truss)    pike="truss $pike"    ;;    --log-dir=*)    LOGDIR=`echo $1 | sed -e 's/--log-dir=//'`    ;;    --config-dir=*)    DIR=`echo $1 | sed -e 's/--config-dir=//'`    FILES=`echo $1 | sed -e's/--config-dir=//' -e's/\.//g' -e's./..g' -e 's.-..g'`    ;; +  --pid-file=*) +  extra_args="$extra_args $1" +  ;;    '--debug'|'--with-debug'|'--enable-debug')    debug=1    ;;    '--without-debug')    debug=-1    ;;    '--fd-debug'|'--with-fd-debug'|'--enable-fd-debug')    DEFINES="-DFD_DEBUG $DEFINES"    ;;    '--threads'|'--with-threads'|'--enable-threads')
Roxen.git/server/start:330:       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 +  start_roxen $extra_args 2>>$LOGDIR/debug/$FILES.1 1>&2       exitcode="$?"       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown.    echo $$: "Roxen shutdown."    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then    # Signal death.
Roxen.git/server/start:355:    sleep 5    fi    done       echo $$: Not Reached "famous last words"       ) < /dev/null > $LOGDIR/debug/start_$FILES.output 2>&1 &      else    echo $$: "Server restart at `date`" -  start_roxen +  start_roxen $extra_args   fi