Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start/Stop TicketServerd in Unix Command line 1

Status
Not open for further replies.

aacoch

Technical User
May 12, 2006
2
CA
In unix TicketServerd can be started via the
/cognos/cer3/bin/TicketServerd command with the proper
arguments

The question is how does one stop the process from the
unix command line... not using the kill command

Thanks


 
why do you want to stop only the ticketserver?

This is a part of my start/stop script for cognos on Unix.

stop_ts () {
# Stop Ticket Server
if [ ! -x ${COGNOS_ROOT}/bin/TicketServerd ]; then
echo "Ticket Server does not appear to be installed - skipping"
return 1
elif [ `ps -ef | grep -v grep | grep TicketServerd | grep -c maxconn` -eq 0 ]; then
echo "Ticket Server not running - skipping"
return 1
elif [ ${USERID} -eq '0' ]; then
echo "Stopping Ticket Server as user ${COGNOS_USER}"
su - ${COGNOS_USER} -c "
cd ${COGNOS_ROOT}/bin
./rc.TicketServerd stop"
else
echo "Stopping Ticket Server"
old_dir=`pwd`
cd ${COGNOS_ROOT}/bin
./rc.TicketServerd stop
cd ${old_dir}
fi

another way is to run the ./configcp with an input document like this:

#stop all Cognos BI components with the configuration manager
echo "Stop BI components"
/home/report/cognos/cer4/bin/configure -t /home/report/stop.ccp

content of stop.ccp file:
version 7.1
opencurrent
stop
exit

with this script all the components are stopped by the configuration manager and works for windows as well.

good luck ,

christenhusz

 
Exactly what I needed ... tried it worked...

thanks
Angelo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top