Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.203 2002/10/24 00:29:41 nilsson Exp $ + # $Id: start,v 1.204 2002/10/30 04:01:52 nilsson 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:72:   # 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"    ./bin/mkdir -p $VARDIR/ || exit 1   fi    -  - pcdir="$VARDIR/`roxen_version`/precompiled/`uname -m | tr ' ' '_' `.`uname -r`" - old_roxen_defines="$pcdir/old_roxen_defines" - ./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      # Locate Pike binary.
Roxen.git/server/start:760:    else false; fi    else false; fi    } < "$pidfile" && exit 1    # Minor race here.    { echo "x" && echo $mypid; } > "$pidfile"    trap cleanup_pid_file 0   fi      PIKEVERSION="`\"$pike\" --version 2>&1|head -1`"   LS="`ls -lL \"$pike\" 2>/dev/null`" - LS="$LS `find pike_modules -ls 2>/dev/null`" - LS="$LS `find server_core -ls 2>/dev/null`" + LS="$LS `cd pike_modules && find . -ls 2>/dev/null`" + LS="$LS `cd server_core && find . -ls 2>/dev/null`" + LS="$LS `cd data/includes && find . -ls 2>/dev/null`"    - VERSION_DATA="$PIKEVERSION $DEFINES $LS" + VERSION_DATA="$PIKEVERSION $DEFINES $LS `uname -m` `uname -r`"      if [ "$program" = "server_core/loader.pike" ] ; then -  if [ "`cat \"$old_roxen_defines\" 2>/dev/null`" != "$VERSION_DATA" ] ; then +  if [ "`cat \"$VARDIR/server_dependencies\" 2>/dev/null`" != "$VERSION_DATA" ] ; then    remove_old_dot_o_files "defines or pike version changed"    fi -  echo "$VERSION_DATA" > "$old_roxen_defines" +  echo "$VERSION_DATA" > "$VARDIR/server_dependencies"   fi      if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then    dp "Starting the ChiliMoon."    else :; fi    if [ "x$DEBUGLOG" = "x" ] ; then    DEBUGDIR="$LOGDIR/debug"    DEBUGLOG="$DEBUGDIR/$FILES"    else