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

Stopping a build engine

With the Jazz server itself there are stop and start scripts. Not for
the jbe though. Is kill -2 really the only option (actually that doesn't
usually work so I have to resort to -9).

Any thoughts about providing a stop script?

Thanks,
Jeremy

0 votes



6 answers

Permanent link
With the Jazz server itself there are stop and start scripts. Not for
the jbe though. Is kill -2 really the only option (actually that doesn't
usually work so I have to resort to -9).

Any thoughts about providing a stop script?

Thanks,
Jeremy


Hi Jeremy,
we're doing the same here (kill)

Here's our startup /stopping script for the RTC Build engine: we're running it on RedHat

#!/bin/sh

### BEGIN INIT INFO
# Provides: Rational Team Concert Build System
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: Rational Team Concert Build System
### END INIT INFO

JBE_LOGFILE=jbe.out

case "$1" in
'start')
export JAVA_HOME=/usr/java/jdk1.5.0_15/
export PATH=$JAVA_HOME/bin:$PATH
cd /opt/IBM/TeamConcertBuild/buildsystem/buildengine/eclipse
if [ -e $JBE_LOGFILE ]
then
mv $JBE_LOGFILE $JBE_LOGFILE.old
fi
echo "Starting jbe process. stdout/stderr redirected to $JBE_LOGFILE"
nohup ./jbe -repository https://jazzserver/jazz -engineId buildengine3 -userId builder.jazz3 -passwordFile /opt/IBM/TeamConcertBuild/buildsystem/buildengine/eclipse/pass.txt -sleeptime 1 >$JBE_LOGFILE 2>&1 &
;;

'stop')
echo "Killing jbe processes:" $(ps -C jbe -o pid=)
ps -C jbe -o pid= | xargs kill
;;

'restart')
$0 stop
sleep 5
$0 start
;;
*)
echo "Usage: $0 { start | stop | restart }"
;;
esac
exit 0


Will the RTC Development team implement another solution for this one?
Thanks,

0 votes


Permanent link
Adil,

I am checking with dev on this.

Steven

Jazz/RTC Support

0 votes


Permanent link
Hi all,

Here is the update from our development:
"No, we don't provide our own mechanism for stopping a build engine. We assume users will use the OS means for doing so, e.g. the kill command on Unix, or sending Ctrl+C to the console window running jbe on Windows.
If they require an out-of-the-box solution for this, please ask them to open an enhancement request."

If you are going to submit an enhancement, please make sure to tag it with "manbeta2".

Thanks!

0 votes


Permanent link
There is a workitem for this (54073).
I'll "refresh" it, to get it back in the queue ...

Cheers,
Geoff

stevenyj wrote:
Hi all,

Here is the update from our development:
"No, we don't provide our own mechanism for stopping a build
engine. We assume users will use the OS means for doing so, e.g. the
kill command on Unix, or sending Ctrl+C to the console window running
jbe on Windows.
If they require an out-of-the-box solution for this, please ask them
to open an enhancement request."

If you are going to submit an enhancement, please make sure to tag it
with "manbeta2".

Thanks!

0 votes


Permanent link
Thanks for this!

Jeremy

On 13/04/2009 00:07, Thunder wrote:
hughesjwrote:
With the Jazz server itself there are stop and start scripts. Not for

the jbe though. Is kill -2 really the only option (actually that
doesn't
usually work so I have to resort to -9).

Any thoughts about providing a stop script?

Thanks,
Jeremy

Hi Jeremy,
we're doing the same here (kill)

Here's our startup /stopping script for the RTC Build engine: we're
running it on RedHat

#!/bin/sh
### BEGIN INIT INFO
# Provides: Rational Team Concert Build System
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: Rational Team Concert Build System
### END INIT INFO

JBE_LOGFILE=jbe.out

case "$1" in
'start')
export JAVA_HOME=/usr/java/jdk1.5.0_15/
export PATH=$JAVA_HOME/bin:$PATH
cd /opt/IBM/TeamConcertBuild/buildsystem/buildengine/eclipse
if
then
mv $JBE_LOGFILE $JBE_LOGFILE.old
fi
echo "Starting jbe process. stdout/stderr redirected to
$JBE_LOGFILE"
nohup ./jbe -repository https://jazzserver/jazz -engineId
buildengine3 -userId builder.jazz3 -passwordFile
/opt/IBM/TeamConcertBuild/buildsystem/buildengine/eclipse/pass.txt
-sleeptime 1 >$JBE_LOGFILE 2>&1 &
;;

'stop')
echo "Killing jbe processes:" $(ps -C jbe -o
pid=)
ps -C jbe -o pid= | xargs kill
;;

'restart')
$0 stop
sleep 5
$0 start
;;
*)
echo "Usage: $0 { start | stop | restart
}"
;;
esac
exit 0

Will the RTC Development team implement another solution for this
one?
Thanks,

0 votes


Permanent link
Geoff, thanks. Sorry for not responding sooner, I just got back from
vacation.

Jeremy
On 14/04/2009 17:22, Geoffrey Clemm wrote:
There is a workitem for this (54073).
I'll "refresh" it, to get it back in the queue ...

Cheers,
Geoff

stevenyj wrote:
Hi all,

Here is the update from our development:
"No, we don't provide our own mechanism for stopping a build
engine. We assume users will use the OS means for doing so, e.g. the
kill command on Unix, or sending Ctrl+C to the console window running
jbe on Windows.
If they require an out-of-the-box solution for this, please ask them
to open an enhancement request."

If you are going to submit an enhancement, please make sure to tag it
with "manbeta2".
Thanks!

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: Apr 08 '09, 8:10 a.m.

Question was seen: 6,521 times

Last updated: Apr 08 '09, 8:10 a.m.

Confirmation Cancel Confirm