Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.248 2012/09/27 10:04:49 grubba Exp $ + # $Id: start,v 1.249 2012/09/27 12:44:12 grubba 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:215:   setup_for_tests() {    # Kill roxen mysql if it's running...    if [ -f "$VARDIR/test_config/_mysql/mysql_pid" ] ; then    kill `cat "$VARDIR/test_config/_mysql/mysql_pid"`    fi    self_test=y    DEFINES="-DRUN_SELF_TEST -DSELF_TEST_DIR=\"$SELF_TEST_DIR\" $DEFINES"    rm -rf "$VARDIR/test_config"*    DIR="$VARDIR/test_config"    if [ -f "$SELF_TEST_DIR/scripts/setup.pike" ] ; then -  $PIKE $DEFINES "$SELF_TEST_DIR/scripts/setup.pike" "$SELF_TEST_DIR" "$VARDIR" +  eval "\"$pike\" $PIKEARGS $DEFINES \"$SELF_TEST_DIR/scripts/setup.pike\" \"$SELF_TEST_DIR\" \"$VARDIR\""    fi    once=${once:-1}    debug=1    #remove_dumped=1   }      parse_args() {    while [ ! c"$1" = "c" ] ; do    case "$1" in    -D*)
Roxen.git/server/start:842:    fi    { echo "x"; echo "$start_pid"; } >"$pidfile"    fi   }      # Check if the PID in $1 is an active process.   processp() {    if kill -0 "$1"; then return 0; fi;       # Check that the cause for the failure is that the process doesn't exist. -  "$PIKE" $DEFINES -e 'return !kill('"$1"', 0) && (errno() == System.ESRCH);'; +  eval "\"$pike\" $PIKEARGS $DEFINES -e 'return !kill('\"$1\"', 0) && (errno() == System.ESRCH);'";    return;   }      # Check if the PID in $1 is an active process and has   # a $2 {start,server} lock-file associated with the   # configuration $3.   roxenp() {    if check_pid_file_lock "$1" "$2" "$3"; then    # Check that the process exists as well.    if processp "$1"; then return 0; fi