improve build componentization
diff --git a/releng.control/cc.sh b/releng.control/cc.sh
index c569fa0..275d481 100644
--- a/releng.control/cc.sh
+++ b/releng.control/cc.sh
@@ -28,6 +28,9 @@
export DISPLAY
rm -fr ./workspace
+rm out.txt
+rm err.txt
+rm cruisecontrol.log
sh $CCDIR/cruisecontrol.sh $BUILD_HOME/releng.control/config.xml -jmxport $port -webport 7777 -user wtp -password ballad -cchome $CCDIR 1>out.txt 2>err.txt &
diff --git a/releng.control/restart.sh b/releng.control/restart.sh
new file mode 100644
index 0000000..7df4e95
--- /dev/null
+++ b/releng.control/restart.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+./stopBuilds.sh
+
+
+# now, restart CC's
+echo "restarting Cruise Controls"
+./startbuild.sh
+
+
+# and list our processes for a warm fuzzy, we pause briefly, since in some
+# error conditions, they will start, but then shutdown a few seconds later
+sleep 10s
+echo "current java processes"
+ps -u wtpBuild -f -w -w | grep java
+
+
diff --git a/releng.control/startbuild.sh b/releng.control/startbuild.sh
new file mode 100644
index 0000000..8b9510c
--- /dev/null
+++ b/releng.control/startbuild.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+
+cd /shared/webtools/releng.control
+sh /shared/webtools/releng.control/cc.sh
+
+
+
diff --git a/releng.control/stopBuilds.sh b/releng.control/stopBuilds.sh
new file mode 100644
index 0000000..c979fe3
--- /dev/null
+++ b/releng.control/stopBuilds.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# allow to terminate themselves, if they will
+echo "Attempting normal terminate of all java processes"
+killall /opt/public/webtools/apps/IBMJava2-ppc-142/jre/bin/java
+# pause briefly to allow shutdown to finish
+sleep 10s
+
+# but if the do not terminate themselves, we can safely force them down
+echo "forcing termination of any remaing java processes"
+killall -9 /opt/public/webtools/apps/IBMJava2-ppc-142/jre/bin/java
+# pause briefly to allow ports to free up, etc.
+sleep 10s
+