ems auto start script

#!/bin/sh
# chkconfig: 345 98 10
# description: EMS auto start-stop script.
#
# Set TIBCO_HOME to the directory where the software is installed
#
# Set OWNER to the user id of into which EMS was installed

TIBCO_HOME=/opt/tibco/ems/8.2/
OWNER=bpmadm

if [ ! -f $TIBCO_HOME/bin/tibemsd64.sh ]
then
echo “EMS startup: cannot start”
exit
fi

case “$1” in
‘start’)
# Start EMS
# Remove “&” if you don’t want startup as a background process.
cd $TIBCO_HOME/bin
su $OWNER -c “./tibemsd64” &
touch /var/lock/subsys/ems
;;
‘stop’)
# Stop EMS
cd $TIBCO_HOME/bin
su $OWNER -c “./shutdown.sh”
rm -f /var/lock/subsys/ems
;;
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