Branch: Tag:

2002-10-14

2002-10-14 11:50:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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

Rev: server/base_server/roxen.pike:1.808
Rev: server/start:1.195

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.
850:    # Clean shutdown.    dp "Roxen WebServer shutdown."    signal_exit -  # Note reached, but... +  # Not reached, but...    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then
866:    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."    ;;