forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrestbot/scripts launch-overseer-ssh
Date Fri, 07 Mar 2003 02:27:04 GMT
jefft       2003/03/06 18:27:04

  Added:       src/resources/forrestbot/scripts launch-overseer-ssh
  Log:
  commit my dont-forget-ssh-agent script
  
  Revision  Changes    Path
  1.1                  xml-forrest/src/resources/forrestbot/scripts/launch-overseer-ssh
  
  Index: launch-overseer-ssh
  ===================================================================
  #!/bin/sh
  
  ###################################################
  # Convenience script for running 'overseer' for use
  # by the webapp
  ###################################################
  
  . `dirname $0`/local-vars
  
  NAMEDPIPE=$WEBAPP/WEB-INF/commands
  
  if [ ! -p "$NAMEDPIPE" -a -e "$NAMEDPIPE" ]; then
    echo "----------------------------------"
    echo "ERROR: The file:"
    echo "  $NAMEDPIPE"
    echo "exists and is not a named pipe. Please delete it and try again"
    echo "----------------------------------"
    exit
  fi
  [ ! -e "$NAMEDPIPE" ] && mkfifo $NAMEDPIPE
  
  OVERSEER_LOG=overseer.log
  
  echo "-------------------------------------"
  echo "Forrestbot 'overseer' server launched"
  echo ""
  echo "Instructions:"
  echo " 1) Type the ssh passphrase"
  echo " 2) ctrl-z this parent process"
  echo " 3) Type 'bg'"
  echo "------------------------------------"
  
  nohup ssh-agent bash -c "ssh-add > /dev/null && exec nohup ./overseer < $NAMEDPIPE
> $OVERSEER_LOG"
  
  
  

Mime
View raw message