Branch: Tag:

2002-10-24

2002-10-24 00:29:41 by Martin Nilsson <mani@lysator.liu.se>

Don't shutdown already running mysqls if we fail to open any ports.
Fixes [bug 3267 (#3267)]. [1.195]

Rev: server/start:1.203

1:   #!/bin/sh   # - # $Id: start,v 1.202 2002/10/23 16:22:51 nilsson Exp $ + # $Id: start,v 1.203 2002/10/24 00:29:41 nilsson Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.
830:    # Clean shutdown.    dp "ChiliMoon shutdown."    signal_exit -  # Note reached, but... +  # Not reached, but...    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then
846:    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 "ChiliMoon down with code $exitcode."    ;;