Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Automated Script to run jazz on linux.

Hi,

I have Jazz running on my 64 bit ubuntu linux machine. And everytime i need to start/stop manually to run Jazz using server-startup/server-shutdown. I'm thinking that its just enough to add these commands in startup script. Correct me if i'm wrong and please tell me on where can be the best place to run these commands.

--
Thanks & Regards,
Mallik

0 votes



2 answers

Permanent link
you should create scripts that will be called during startup and shutdown. you may want to take a look at this post in the ubuntu forum.

ciao!

0 votes


Permanent link
I just whipped this up for my own use.

1. Copy the below to /etc/rc.d/ibm_rtc.
2. Edit RTCHOME as necessary; I've used the default path.
3. chown root:root /etc/rc.d/ibm_rtc
4. chmod 755 /etc/rc.d/ibm_rtc
5. for Ubuntu, sudo update-rc.d ibm_rtc defaults; for other Linux distributions try something like ln -s /etc/rc.d/ibm_rtc /etc/rc2.d/S99ibm_rtc; ln -s /etc/rc.d/ibm_rtc /etc/rc6.d/K10ibm_rtc; ln -s /etc/rc.d/ibm_rtc /etc/rc0.d/K10ibm_rtc . I am leaving out some runlevels, it's up to you as to which ones you want.
6. test: startup with /etc/init.d/ibm_rtc start. shutdown with /etc/init.d/ibm_rtc stop.


#!/bin/sh
# IBM Rational Team Concert init.d script
RTCHOME=/opt/IBM/JazzTeamServer
scriptdir=${RTCHOME}/server
cd $scriptdir

start_all()
{
$scriptdir/server.startup >/dev/null 2>&1
}

stop_all()
{
$scriptdir/server.shutdown >/dev/null 2>&1
}

set +e

case "$1" in
start)
start_all
;;

restart)
stop_all
start_all
;;

stop)
stop_all
;;
*)
echo "Usage: $0 {start, stop, restart}"
esac

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 23 '08, 6:59 p.m.

Question was seen: 7,299 times

Last updated: Oct 23 '08, 6:59 p.m.

Confirmation Cancel Confirm