Branch: Tag:

2001-02-02

2001-02-02 12:08:24 by Fredrik Noring <noring@nocrew.org>

Fixed quote bug and added Roxen version change functionality.

Rev: server/start:1.150

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.
138:      parse_args() {    while [ ! c"$1" = "c" ] ; do -  case $1 in +  case "$1" in    -D*)    DEFINES="$DEFINES $1"    ;;
689:    # 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    ) &