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/10/14 11:50:07 grubba 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:843:       dp "Server start at `date`"    dp "Debug log in ${DEBUGLOG}.1"    rotate "$DEBUGLOG"    start_roxen       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown.    dp "Roxen WebServer shutdown."    signal_exit -  # Note reached, but... +  # Not reached, but...    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then    # Signal death.    dp "Roxen WebServer died of signal $exitcode."    else    case "$exitcode" in    100)    dp "Changing Roxen WebServer version. Restarting."    # We need to clean up the pid file, since we're mentioned in it...    cleanup_pid_file    cd .. && exec ./start "$@"    dp 'Failed to spawn start script. -- Permission problem?'    exit 1    ;; -  +  50) +  dp "Failed to open any port. Shutdown." +  keep_mysql=1 +  signal_exit +  # Not reached, but... +  exit 50 +  ;;    *)    dp "Roxen WebServer down with code $exitcode."    ;;    esac    fi    if [ -f "$LOCALDIR/restart_rc" ]; then    dp "Running $LOCALDIR/restart_rc..."    if /bin/sh "$LOCALDIR/restart_rc"; then :; else    dp "$LOCALDIR/restart_rc failed with code $?."    fi