Aido.git / aido-metaserver.in

version» Context lines:

Aido.git/aido-metaserver.in:4:    PIKE=pike   fi      if [ -f @DIR@/CVS/Entries ] ; then    VERSION="cvs-@VERSION@"   else    VERSION="@VERSION@"   fi      DB='"mysql://root@localhost/aido_md"' - DEFINES="-V7.4 -DSQL_URL=$DB" + DEFINES="-V7.4"   ARGS=""   once=0      LOG='@DIR@/logs/metaserver-debug'   DEFLOG="$LOG"   PIDFILE="$HOME/.aido/metaserver.pid"   DEFPIDFILE="$PIDFILE"      while [ ! c"$1" = "c" ] ; do    case "$1" in
Aido.git/aido-metaserver.in:42:    PID=`cat $PIDFILE`    echo Restarting metaserver with PID $PID in the background.    kill -HUP $PID    fi    exit 0    ;;    '--version')    echo "AIDO MetaServer $VERSION"    exit 0    ;; -  '--log=*') +  --log=*)    LOG=`echo $1 | sed -e 's/--log=//'`    ;; -  '--pid-file=*') +  --pid-file=*)    PIDFILE=`echo $1 | sed -e 's/--pid-file=//'`    ;; -  +  --database=*) +  DB=`echo $1 | sed -e 's/--database=//'` +  ;;    '--help'|'-?')    sed -e "s/\\.B/`tput 'bold' 2>/dev/null`/g" -e "s/B\\./`tput 'sgr0' 2>/dev/null`/g" << EOF   This command will start the AIDO MetaServer (version $VERSION).   Installation directory: @DIR@      Options:       .B--versionB.: Output version information    .B--help -?B.: This information.    .B--onceB.: Run the server only once, in the foreground.    The default behaviour is to run it in a loop in the    background.    .B--kill --stopB.: Kill the running server, without restarting it    .B--restartB.: Kill the running server, restarting it afterwards    .B--log=fileB.: Use the specified file as the debug log.    default is $DEFLOG    .B--pid-file=fileB.: Use the specified file as the PID file.    default is $DEFPIDFILE -  +  .B--database=URLB.: Use specified database URL. +  default is $DB   EOF    tput 'rmso' 2>/dev/null    exit 0    ;;    *)    ARGS="$ARGS $1"    ;;    esac    shift   done      cd "@DIR@/programs" - ARGS="$DEFINES -M../pike-modules metaserver.pike $ARGS" + ARGS="$DEFINES -DSQL_URL="'"'"$DB"'"'" -M../pike-modules metaserver.pike $ARGS"      rotate_log() {    mv -f "$LOG.old" "$LOG.older" 2>/dev/null    mv -f "$LOG" "$LOG.old" 2>/dev/null   }      start_server() {    if [ ! x$DEBUG = x ] ; then    echo cd "@DIR@/programs/"    pikeversion=`$PIKE --version 2>&1 | head -1`