Starting ORCA

If you have built and configured ORCA and tarred/zipped the necessary files, starting it can be accomplished by:

$ export ORCA_HOME=/opt/orca4
$ export ORCA_SERVER_PORT=11080
  • If you are running a command-line version:
    $ nohup /wherever/you/untarred/bin/orca &
    
  • If you are running a daemon version:
    $ chmod 755 /wherever/you/untarred/bin/wrapper*
    $ sh /wherever/you/untarred/bin/orcad start 
    

NOTE: If you are running the daemon version, modify the orcad script to point to the correct pid file by modifying PIDFILE

# Location of the pid file.
PIDDIR="$ORCA_HOME/logs"

Starting XMLRPC Controller

If you have built and configured ORCA controller and tarred/zipped the necessary files, starting it can be accomplished by:

$ export ORCA_CONTROLLER_HOME=/opt/orca-controller
  • If you are running a command-line version
    $ nohup /wherever/you/unzipped/bin/xmlrpc &
    
  • If you are running a command-line version
    $ /wherever/you/untarred/bin/xmlrpc &
    
  • If you are running a daemon version
    $ chmod 755 /wherever/you/untarred/bin/wrapper*
    $ sh /wherever/you/untarred/bin/xmlrpcd start
    

NOTE: If you are running the daemon version, modify the xmlrpcd script to point to the correct pid file by modifying PIDFILE

# Location of the pid file.
PIDDIR="$ORCA_CONTROLLER_HOME/logs"

Logging information

  • For ORCA actors: $ORCA_HOME/logs
  • For ORCA Controller: $ORCA_CONTROLLER_HOME/logs
  • OpenStack ORCA extensions: /var/log/orca
  • Handler output:
    • If you are running the command line version it goes to stdout or nohup
    • If you are running the daemon version it goes to orca-stdout.log or xmlrpc-stdout.log. You can adjust the location by adding wrapper.logfile=$ORCA_HOME/logs/orca-stdout.log to the function start() in bin/orcad (similarly you can edit the xmlrpcd script to send output to $ORCA_CONTROLLER_HOME/logs/xmlrpc-stdout.log):
      start() {
          echo "Starting $APP_LONG_NAME..."
          getpid
          if [ "X$pid" = "X" ]
          then
              # The string passed to eval must handles spaces in paths correctly.
              COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=$APP_NAME wrapper.pidfile=\"$PIDFILE\" wrapper.logfile=$ORCA_HOME/logs/orca-stdout.log wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP $WRAPPER_CONF_OVERRIDES"
              eval $COMMAND_LINE
          else
              echo "$APP_LONG_NAME is already running."
              exit 1
          fi
      }