sample auto run script for bpm

#!/bin/sh
# chkconfig: 345 99 9
# description: EMS auto start-stop script.
#
# Set TIBCO_HOME to the location of the BPM config directory
#
# Set OWNER to the user id under which bpm will run

TIBCO_HOME=/home/bpmadm/TIBCO_HOME/tibco/data/tibcohost/Admin-AMX-BPM-AMX-BPM-Server/host/bin
OWNER=bpmadm

if [ ! -f “$TIBCO_HOME/tibcohost” ]
then
echo “BPM startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start BPM
cd “$TIBCO_HOME”
su $OWNER -c “./tibcohost spawn > /home/bpmadm/logs/start_bpm.log” &
touch /var/lock/subsys/bpm
;;
‘stop’)
# Stop BPM
cd “$TIBCO_HOME”
su $OWNER -c “./tibcohost stop -wait true”
rm -f /var/lock/subsys/bpm
;;
esac

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s