Stopping a build engine
6 answers
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,
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!
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!
There is a workitem for this (54073).
I'll "refresh" it, to get it back in the queue ...
Cheers,
Geoff
stevenyj wrote:
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!
Thanks for this!
Jeremy
On 13/04/2009 00:07, Thunder wrote:
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,
Geoff, thanks. Sorry for not responding sooner, I just got back from
vacation.
Jeremy
On 14/04/2009 17:22, Geoffrey Clemm wrote:
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!