Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.170 2001/07/02 01:45:36 nilsson Exp $ + # $Id: start,v 1.171 2001/07/02 02:53:18 mast 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:569:   #   # Some useful functions   #      cleanup_pid_file() {    [ -z "$pidfile" ] || rm $pidfile   }      signal_exit() {    trap "" 2 15 -  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` 2>/dev/null    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 -  +  dp "Start script terminated."    exit 0   }      exit_fail() {    exitcode=1   }      start_roxen() {    check_owner    raise_limit