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/21 01:16:51 UTC
svn commit: r370936 - in /lenya/zone/bin: lenya-for-forrest.sh
nightly-branch.sh nightly-trunk.sh
Author: thorsten
Date: Fri Jan 20 16:16:41 2006
New Revision: 370936
URL: http://svn.apache.org/viewcvs?rev=370936&view=rev
Log:
Further enhancement of loging for all script that build instances of lenya
Modified:
lenya/zone/bin/lenya-for-forrest.sh
lenya/zone/bin/nightly-branch.sh
lenya/zone/bin/nightly-trunk.sh
Modified: lenya/zone/bin/lenya-for-forrest.sh
URL: http://svn.apache.org/viewcvs/lenya/zone/bin/lenya-for-forrest.sh?rev=370936&r1=370935&r2=370936&view=diff
==============================================================================
--- lenya/zone/bin/lenya-for-forrest.sh (original)
+++ lenya/zone/bin/lenya-for-forrest.sh Fri Jan 20 16:16:41 2006
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/bash
help()
{
cat <<HELP
@@ -16,7 +16,8 @@
HELP
}
-
+umask 0002
+logfile=/tmp/lenya.for.forrest.update.log
update=true
while [ -n "$1" ]; do
case $1 in
@@ -29,18 +30,17 @@
done
#first, kill running lenya instances
TRUNK_PID=`cat /export/home/lenya/bin/lenya-for-forrest.pid`
-ps -ef | grep lenya|grep $TRUNK_PID|grep -v grep|awk '{print "kill -9 "$2}'|sh
-rm /export/home/lenya/bin/lenya-for-forrest.pid
+ps -ef | grep lenya|grep $TRUNK_PID|grep -v grep|awk '{print "kill -9 "$2}'|sh >> $logfile
+rm /export/home/lenya/bin/lenya-for-forrest.pid >> $logfile
#update trunk & restart
cd /export/home/lenya/src/lenya-1.4.x-forrest
if [ $update = true ]; then
- echo "#svn up"
- svn up
+ echo "#svn up" >> $logfile
+ svn up >> $logfile 2>&1
fi
-echo "#building"
-./build.sh clean
-./build.sh
-echo "#starting"
-./lenya.sh servlet 2>&1 &
+echo "#building" >> $logfile
+./build.sh >> $logfile 2>&1
+echo "#starting" >> $logfile
+./lenya.sh servlet >> $logfile 2>&1 &
echo $! > /export/home/lenya/bin/lenya-for-forrest.pid
Modified: lenya/zone/bin/nightly-branch.sh
URL: http://svn.apache.org/viewcvs/lenya/zone/bin/nightly-branch.sh?rev=370936&r1=370935&r2=370936&view=diff
==============================================================================
--- lenya/zone/bin/nightly-branch.sh (original)
+++ lenya/zone/bin/nightly-branch.sh Fri Jan 20 16:16:41 2006
@@ -1,5 +1,4 @@
-#!/bin/sh
-
+#!/usr/bin/bash
help()
{
cat <<HELP
@@ -32,7 +31,9 @@
}
umask 0002
logfile=/tmp/lenya.branch.update.log
-echo "Deploying lenya.branch" >> $logfile
+echo "Deploying lenya.branch" > $logfile
+echo "starting date is " >> $logfile
+date >> $logfile
update=true
cocoon=true
while [ -n "$1" ]; do
Modified: lenya/zone/bin/nightly-trunk.sh
URL: http://svn.apache.org/viewcvs/lenya/zone/bin/nightly-trunk.sh?rev=370936&r1=370935&r2=370936&view=diff
==============================================================================
--- lenya/zone/bin/nightly-trunk.sh (original)
+++ lenya/zone/bin/nightly-trunk.sh Fri Jan 20 16:16:41 2006
@@ -1,5 +1,4 @@
-#!/bin/sh
-
+#!/usr/bin/bash
help()
{
cat <<HELP
@@ -32,6 +31,9 @@
}
umask 0002
logfile=/tmp/lenya.trunk.update.log
+echo "Deploying lenya.branch" > $logfile
+echo "starting date is " >> $logfile
+date >> $logfile
update=true
cocoon=true
while [ -n "$1" ]; do
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org