Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.113 2000/05/17 17:42:45 nilsson Exp $ + # $Id: start,v 1.114 2000/06/05 17:55:01 grubba Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"      cd `dirname $0`      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike
Roxen.git/server/start:550:   oo    else :; fi       # Try to get rid of some fd's.    # Some /bin/sh's have problems detaching otherwise.       exec >/dev/null    exec </dev/null       if ((while : ; do +  if test -d "$LOGDIR/debug/."; then :; else +  # Avoid infinite loop if the debug directory is deleted. +  # Thanks to Emils Klotins <emils@dot.lv> for reporting it. +  if ./mkdir -p "$LOGDIR/debug/"; then :; else +  echo "Failed to create log directory $LOGDIR/debug/." 1>&2 +  exit 1 +  fi +  fi +     echo "$pre" "Server restart at `date`"    echo "$pre" "Debug log in $LOGDIR/debug/$FILES.1"    rotate $LOGDIR/debug/$FILES    start_roxen $extra_args 2>>$LOGDIR/debug/$FILES.1 1>&2       exitcode="$?"       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown.    echo "$pre" "Roxen shutdown."