It's all about the answers!

Ask a question

Stopping a build engine


Jeremy Hughes (2164837) | asked Apr 08 '09, 8:10 a.m.
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

6 answers



permanent link
Adil Chahid (45524018) | answered Apr 12 '09, 6:58 p.m.
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,

permanent link
Steven Jin (10697) | answered Apr 14 '09, 9:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Adil,

I am checking with dev on this.

Steven

Jazz/RTC Support

permanent link
Steven Jin (10697) | answered Apr 14 '09, 11:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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!

permanent link
Geoffrey Clemm (30.0k23035) | answered Apr 14 '09, 12:22 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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!

permanent link
Jeremy Hughes (2164837) | answered Apr 15 '09, 2:49 a.m.
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,

permanent link
Jeremy Hughes (2164837) | answered Apr 15 '09, 5:04 a.m.
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!

Your answer


Register or to post your answer.