Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.172 2001/07/09 21:06:43 nilsson Exp $ + # $Id: start,v 1.173 2001/08/06 16:44:37 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:83:   old_roxen_defines="$pcdir/old_roxen_defines"   ./mkdir -p $pcdir || exit 1   chmod 1777 $pcdir      # Default verbosity level.   verbose=1      # Do not default to using a relative path.   roxendir="`pwd`"    + # No debug by default. + debug=-1 +    # Locate Pike binary.   find_pike      # Source environment   setup_environment      ####### BEGIN ARGUMENT PARSING         DEFINES="$DEFINES -DRAM_CACHE"
Roxen.git/server/start:171:    '--with-security'|'--enable-security')    DEFINES="$DEFINES -DSECURITY"    ;;       '--debug'|'--with-debug'|'--enable-debug')    debug=1    ;;    '--without-debug')    debug=-1    ;; +  '--module-debug'|'--with-module-debug'|'--enable-module-debug') +  debug=0 +  ;;    '--fd-debug'|'--with-fd-debug'|'--enable-fd-debug')    DEFINES="-DFD_DEBUG $DEFINES"    ;;    '--strip-backslash'|'--without-backslash'|'--strip-back-slash')    DEFINES="-DSTRIP_BSLASH $DEFINES"    ;;    '--without-ram-cache'|'--disable-ram-cache')    DEFINES="`echo $DEFINES | sed -e 's/-DRAM_CACHE//g'`"    ;;    '--without-ram-cache-stat'|'--disable-ram-cache-stat')
Roxen.git/server/start:211:    '--verbose'|'-v')    verbose=2    debug=1    ;;    '--remove-dumped')    remove_dumped=1;    ;;       '--once')    once=1 +  debug=0    ;;   # Misspelling --once might give undesirable results, so let's accept   # some "creative" spellings... :-)    '--onve'|'--onec'|'--onev'|'--ocne')    once=1 -  +  debug=0    ;;    '--keep-mysql')    keep_mysql=1    ;;    '--gdb')    gdb=gdb    once=1 -  +  debug=0    ;;    '--program')    program="$2"    once=1    passhelp=1    shift    ;;    '--cd')    cd_to="$2"    # Use the absolute path...
Roxen.git/server/start:340:    administration interface       .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. +  This is very useful when debugging. Implies +  --module-debug.       .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    -  .B--without-debugB.: Disable all debug +  .B--without-debugB.: Disable all debug. This is the default.    -  .B--with-fd-debugB.: Enable FD debug. +  .B--module-debugB.: Enable more internal debug checks to +  simplify debugging of Roxen modules.    -  .B--with-dump-debugB.: Enable dump debug. +  .B--fd-debugB.: Enable FD debug.    -  +  .B--dump-debugB.: Enable dump debug. +     .B--trussB.: (Solaris only). Run the server under    truss, shows .BallB. system calls. This is    extremely noisy, and is not intented for    anything but debug.       .B--truss-cB.: (Solaris only). Run the server under    truss -c, shows times for all system calls    on exit. This is not intented for anything    but debug. Slows the server down.   
Roxen.git/server/start:549:   # HPUX doesn't like group 60001(nobody)   if uname | grep 'HP-UX' >/dev/null 2>&1; then    if [ $verbose -gt 0 ]; then    dp "WARNING: Applying kludge for HPUX. (see base_server/roxen.pike)"    else :; fi    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi         case "x$debug" in -  "x") +  "x"|"x0")    DEBUG="-DMODULE_DEBUG "    ARGS="$ARGS -w"    ;;    "x-1")    DEBUG=""    ;;    "x1")    DEBUG="-DDEBUG -DMODULE_DEBUG"    ARGS="$ARGS -w"    ;;