Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.171 2001/07/02 02:53:18 mast Exp $ + # $Id: start,v 1.172 2001/07/09 21:06:43 nilsson 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:217:    ;;       '--once')    once=1    ;;   # Misspelling --once might give undesirable results, so let's accept   # some "creative" spellings... :-)    '--onve'|'--onec'|'--onev'|'--ocne')    once=1    ;; +  '--keep-mysql') +  keep_mysql=1 +  ;;    '--gdb')    gdb=gdb    once=1    ;;    '--program')    program="$2"    once=1    passhelp=1    shift    ;;
Roxen.git/server/start:339:    .B--with-file-profileB.: Like .B--with-profileB., but save information    for each and every file.       .B--self-testB.: Runs a testsuite.    .B--self-test-verboseB.: Runs a testsuite, report all tests.    .B--self-test-quietB.: Runs a testsuite, only report errors.       .B--onceB.: Run the server only once, in the foreground.    This is very useful when debugging.    +  .B--keep-mysqlB.: Don't shut down MySQL process when exiting +  the start script. Useful during development +  or any other scenario where the start script +  is frequently terminated. +     .B--gdbB.: Run the server in gdb. Implies .B--onceB..       .B--programB.: Start a different program with the roxen    Pike. As an example,    .B./start --program bin/install.pikeB. will    start the installation program normally    started with .B./installB.       .B--with-debugB.: Enable debug   
Roxen.git/server/start:573:   cleanup_pid_file() {    [ -z "$pidfile" ] || rm $pidfile   }      signal_exit() {    trap "" 2 15    if [ "x$ROXEN_PID" != "x" ]; then    kill $ROXEN_PID 2>/dev/null && wait $ROXEN_PID 2>/dev/null    dp "Roxen WebServer shutdown."    fi +  if [ "x$keep_mysql" = "x" ] ; then    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 -  +  fi    dp "Start script terminated."    exit 0   }      exit_fail() {    exitcode=1   }      start_roxen() {    check_owner