It's all about the answers!

Ask a question

Automated Script to run jazz on linux.


Mallikarjuna Rao (2641) | asked Oct 23 '08, 6:59 p.m.
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

2 answers



permanent link
Anuerin Diaz (4112517) | answered Oct 23 '08, 8:40 p.m.
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!

permanent link
Joan Touzet (11) | answered Jan 07 '09, 3:22 p.m.
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

Your answer


Register or to post your answer.