Branch: Tag:

2001-11-15

2001-11-15 12:04:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for $LOCALDIR/restart_rc.
Fixes [bug 2530 (#2530)].

Rev: server/start:1.188

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.
841:    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)
851:    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.