Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.149 2001/02/01 02:53:08 per Exp $ + # $Id: start,v 1.150 2001/02/02 12:08:24 noring 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:131:    rm -rf "$VARDIR""test_config"*    cp -R etc/roxen_test/test_config $VARDIR    cp etc/roxen_test/filesystem/test_rxml_package rxml_packages/test_rxml_package    DIR="$VARDIR""test_config"    once=1    remove_dumped=1   }      parse_args() {    while [ ! c"$1" = "c" ] ; do -  case $1 in +  case "$1" in    -D*)    DEFINES="$DEFINES $1"    ;;    -l*)    ARGS="$ARGS $1"    ;;    --truss)    pike="truss $pike"    ;;    --truss-c)
Roxen.git/server/start:682:       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown.    dp "Roxen WebServer shutdown."    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then    # Signal death.    dp "Roxen WebServer died of signal $exitcode. Restarting..."    else +  case "$exitcode" in +  100) +  dp "Changing Roxen WebServer version. Restarting." +  cd .. && exec ./start "$@" +  dp 'Failed to spawn start script. -- Permission problem?' +  exit 1 +  ;; +  *)    dp "Roxen WebServer down. Restarting." -  +  ;; +  esac    fi    done    ) &    dp "Forked start script, pid $!." >&3    ) 3>&1 </dev/null >$LOGDIR/debug/start_$FILES.output 2>&1; then    :    else    dp 'Failed to spawn subshell. -- Permission problem?'    exit 1    fi       # Try to get rid of some fd's.    # Some /bin/sh's have problems detaching otherwise.       exec >/dev/null    exec </dev/null   else    start_roxen $extra_args   fi