Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.187 2001/11/09 14:28:07 grubba Exp $ + # $Id: start,v 1.188 2001/11/15 12:04:14 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:834:       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown.    dp "Roxen WebServer shutdown."    signal_exit    # Note reached, but...    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then    # Signal death. -  dp "Roxen WebServer died of signal $exitcode. Restarting..." +  dp "Roxen WebServer died of signal $exitcode."    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." +  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 +  fi +  dp "Restarting..."    done    ) &    # Minor race here wrt pid file contents.    pid=$!    trap "" 0    [ -z "$pidfile" ] || { echo "x" && echo $pid; } > "$pidfile"    dp "Forked start script, pid $pid." 2>&3    dp "Start script pid $pid."    ) 3>&2 </dev/null >"$DEBUGDIR/start_$FILES.output" 2>&1; then    trap "" 0