You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/01/16 01:29:04 UTC

svn commit: r369292 - /lenya/zone/bin/nightlies.sh

Author: thorsten
Date: Sun Jan 15 16:29:01 2006
New Revision: 369292

URL: http://svn.apache.org/viewcvs?rev=369292&view=rev
Log:
Enhanced logging for the nightly script.

Modified:
    lenya/zone/bin/nightlies.sh

Modified: lenya/zone/bin/nightlies.sh
URL: http://svn.apache.org/viewcvs/lenya/zone/bin/nightlies.sh?rev=369292&r1=369291&r2=369292&view=diff
==============================================================================
--- lenya/zone/bin/nightlies.sh (original)
+++ lenya/zone/bin/nightlies.sh Sun Jan 15 16:29:01 2006
@@ -31,7 +31,7 @@
 
 HELP
 }
-
+umask 0002
 update=true
 cocoon=true
 while [ -n "$1" ]; do
@@ -69,40 +69,53 @@
 fi
 
 #update trunk & restart
-echo "#update trunk (if not set to false) & restart"
+echo "#update trunk (if not set to false) & restart" > /tmp/lenya.trunk.update.log
 cd /export/home/lenya/src/lenya-trunk
 if [ $update = true ]; then
  echo "#svn up"
- svn up
+ echo "#svn up" >> /tmp/lenya.trunk.update.log 
+ svn up >> /tmp/lenya.trunk.update.log
 fi
 #first, kill running lenya instance
-echo "#first, kill running lenya instance"
+echo "#first, kill running lenya instance" >> /tmp/lenya.trunk.update.log 
 TRUNK_PID=`cat /export/home/lenya/bin/lenya-trunk.pid`
 ps -ef | grep lenya|grep $TRUNK_PID|grep -v grep|awk '{print "kill -9 "$2}'|sh
 rm /export/home/lenya/bin/lenya-trunk.pid 
+echo "#building clean"
+echo "#building clean" >> /tmp/lenya.trunk.update.log 
+./build.sh clean >> /tmp/lenya.trunk.update.log
 echo "#building"
-./build.sh clean
-./build.sh
+echo "#building" >> /tmp/lenya.trunk.update.log
+./build.sh >> /tmp/lenya.trunk.update.log
 echo "#starting"
-./lenya.sh servlet 2>&1 &
+echo "#starting" >> /tmp/lenya.trunk.update.log 
+./lenya.sh servlet 2>&1 & >> /tmp/lenya.trunk.update.log 
 echo $! > /export/home/lenya/bin/lenya-trunk.pid
+chmod 666 /tmp/lenya.trunk.update.log 
+#echo "#sending mail"
+#cat /tmp/lenya.site.update.log | mail -s "[lenya.zones] lenya-trunk updated" thorsten@apache.org
 
 #update 1.2 & restart
-echo "#update 1.2 (if not set to false) & restart"
+echo "#update 1.2 (if not set to false) & restart" > /tmp/lenya.branch.update.log
 cd /export/home/lenya/src/lenya-1.2.x
 if [ $update = true ]; then
  echo "#svn up"
- svn up
+ echo "#svn up" >> /tmp/lenya.branch.update.log 
+ svn up >> /tmp/lenya.branch.update.log
 fi
 #first, kill running lenya instance
-echo "#first, kill running lenya instance"
+echo "#first, kill running lenya instance" >> /tmp/lenya.branch.update.log
 BRANCH_PID=`cat /export/home/lenya/bin/lenya-1_2.pid`
 ps -ef | grep lenya|grep $BRANCH_PID|grep -v grep|awk '{print "kill -9 "$2}'|sh
 rm /export/home/lenya/bin/lenya-1_2.pid
+echo "#building clean"
+echo "#building clean" >> /tmp/lenya.branch.update.log
+./build.sh clean >> /tmp/lenya.branch.update.log
 echo "#building"
-./build.sh clean
-./build.sh
+echo "#building" >> /tmp/lenya.branch.update.log
+./build.sh >> /tmp/lenya.branch.update.log
 echo "#starting"
-./lenya.sh servlet 2>&1 &
+echo "#starting" >> /tmp/lenya.branch.update.log
+./lenya.sh servlet 2>&1 &  >> /tmp/lenya.branch.update.log
 echo $! > /export/home/lenya/bin/lenya-1_2.pid
-
+chmod 666 /tmp/lenya.branch.update.log



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org