Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.164 2001/06/26 18:41:20 mast Exp $ + # $Id: start,v 1.165 2001/06/27 18:58:47 per 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:572:   cleanup_pid_file() {    [ -z "$pidfile" ] || rm $pidfile   }      signal_exit() {    dp "Start script terminated."    if [ "x$ROXEN_PID" != "x" ]; then    kill $ROXEN_PID 2>/dev/null && wait $ROXEN_PID 2>/dev/null    dp "Roxen WebServer shutdown."    fi +  if [ -f $DIR/_mysql/mysql_pid ] ; then +  dp "Shutting down mysql" +  kill `cat $DIR/_mysql/mysql_pid` +  sleep 2 +  if [ -f $DIR/_mysql/mysql_pid ] ; then +  kill -9 `cat $DIR/_mysql/mysql_pid` 2>/dev/null +  fi +  rm -f $DIR/_mysql/mysql_pid 2>/dev/null +  fi    exit 0   }      exit_fail() {    exitcode=1   }      start_roxen() {    check_owner    raise_limit
Roxen.git/server/start:640:    # Pike source tree).    dp "Executing $pike --gdb $args"    $pike --gdb $args    else    dp "Executing gdb $pike $args"    echo >>.gdbinit run $args    gdb $pike    fi    rm .gdbinit    fi +  if [ x$once = x1 ] ; then +  signal_exit +  fi   }         #   # Now do the stuff   #      trap signal_exit 2 15   trap "" 1