Starting PHWeb Dispatcher Automatically on HP-UX

Whittall, Conrad Conrad.Whittall@Cognos.COM
Thu, 28 Oct 2004 11:54:34 -0400


Hi John,

We use a simple Bourne Shell script on Solaris (so, if memory serves,
most of the directory locations will probably be different on HP-UX,
/opt instead of /usr for example) to define the environment variables
that the dispatcher needs and then submit the dispatcher as a detached
process...

##########

# Set up environment to use Oracle 9i and PowerHouse Web 2.43C

ORACLE_HOME=/usr/oracle/9.2.0
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin
export PATH

PHWEB_USR=/usr/cognos/ph_web243c
export PHWEB_USR
. $PHWEB_USR/setpow.sh

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$PH_LIBRARY
export LD_LIBRARY_PATH

# Define the location of the PHWeb configuration file

PHWEB_CONFIG_LOC=/www/support/phwebapps
export PHWEB_CONFIG_LOC

# Define the locations of the GCS banner, leftnav, and
# footer files so that PHWeb can pick them up and substitute
# them through PH:USE tags

GCS_BANNER=/www/support/htdocs/includes/xhtml/en/gcs_banner.html
GCS_FOOTER=/www/support/htdocs/includes/xhtml/en/gcs_footer.html
GCS_LEFTNAV=/www/support/htdocs/includes/xhtml/en/left_nav_support.html

export GCS_BANNER
export GCS_FOOTER
export GCS_LEFTNAV

# Create a shortcut command to start the PHWeb Dispatcher
# in the current session and pick up the config file from
# the defined location...

STRPHWEB(){
PHWebDispatch -a 1605 -l $PHWEB_CONFIG_LOC
}

# Create a shortcut command to start the PHWeb Dispatcher
# in the background and pick up the config file from
# the defined location...

SUBMITPHWEB(){
startdispatch -a 1605 -l $PHWEB_CONFIG_LOC
}

##########

Then by running the SUBMITPHWEB command under the logon id we want the
dispatcher to run under we get the process up and running.

This is included in our boot scripts to execute after both the web
server and database server have been started...pretty much the last
thing our boot script does.

Hope this gives you a few ideas...

Best regards,
Conrad

-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of John MacLerran
Sent: Thursday 28 October 2004 11:31
To: powerh-l@lists.sowder.com
Subject: Starting PHWeb Dispatcher Automatically on HP-UX

Dear PowerHouse list-ers,

A question for folks using PowerHouse Web on HP-UX:

I'd like to make the dispatcher start automatically on reboot.  What
script(s) need to be invoked to do this?  Is there a specific run level
where the dispatcher should be started?

Thanks!

--
----------------------------------------------------------------------
  John MacLerran
  IT Systems Analyst                       email:   macljohn@isu.edu
  Idaho State University                             V(208) 282-2954
  http://www.isu.edu/~macljohn                       F(208) 282-3673
----------------------------------------------------------------------

= = = = = = = = = = = = = = = = = = = = = = = = = = = = 
  
       This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.