Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.194 2002/05/18 18:15:49 jonasw Exp $ + # $Id: start,v 1.195 2002/06/03 20:36:10 per Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.      if [ "x$1" = "x--silent-start" ] ; then    SILENT_START="y"    shift   fi      check_owner() {
Roxen.git/server/start:69:   LOCALDIR=../local   SELF_TEST_DIR=etc/test      # Make LOCALDIR an absolute path   if test -d $LOCALDIR/.; then    LOCALDIR="`cd $LOCALDIR; pwd`"   else :; fi      if test -d $VARDIR/.; then :; else    dp "Creating directory $VARDIR" -  ./mkdir -p $VARDIR/ || exit 1 +  ./bin/mkdir -p $VARDIR/ || exit 1   fi         pcdir="$VARDIR/`roxen_version`/precompiled/`uname -m | tr ' ' '_' `.`uname -r`"   old_roxen_defines="$pcdir/old_roxen_defines" - ./mkdir -p "$pcdir" || exit 1 + ./bin/mkdir -p "$pcdir" || exit 1   chmod 1777 "$pcdir"      # Default verbosity level.   verbose=1      # Do not default to using a relative path.   roxendir="`pwd`"      # No debug by default.   debug=-1
Roxen.git/server/start:805:    else :; fi    if [ "x$DEBUGLOG" = "x" ] ; then    DEBUGDIR="$LOGDIR/debug"    DEBUGLOG="$DEBUGDIR/$FILES"    else    DEBUGDIR="`dirname "$DEBUGLOG"`"    fi    # This duplicate of the logdir creation code is needed, check the    # redirect below    if [ ! -d "$DEBUGDIR" ] ; then -  if ./mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else +  if ./bin/mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else    dp "Failed to create log directory $DEBUGDIR."    exit 1    fi    fi    if [ $verbose -gt 0 ]; then    dp "Using configuration from $DIR"    dp "Storing the debug log in ${DEBUGLOG}.1"    dp "You can use the administration interface in the server to see debug info."    else :; fi   
Roxen.git/server/start:828:    # Minor race here wrt pid file cleanup.    exec 3>&-    trap signal_exit 2 15    trap "" 1    trap cleanup_pid_file 0       while : ; do    if test -d "$DEBUGDIR/."; then :; else    # Avoid infinite loop if the debug directory is deleted.    # Thanks to Emils Klotins <emils@dot.lv> for reporting it. -  if ./mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else +  if ./bin/mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else    dp "Failed to create log directory $DEBUGDIR."    exit 1    fi    fi       dp "Server start at `date`"    dp "Debug log in ${DEBUGLOG}.1"    rotate "$DEBUGLOG"    start_roxen