Revision: 1449
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1449&view=revAuthor: hcunningham
Date: 2009-07-03 16:37:42 +0000 (Fri, 03 Jul 2009)
Log Message:
-----------
start a new log file each new run (old gets put in .previous)
Modified Paths:
--------------
trunk/cow/bin/cow-init.sh
Modified: trunk/cow/bin/cow-init.sh
===================================================================
--- trunk/cow/bin/cow-init.sh 2009-07-03 16:03:23 UTC (rev 1448)
+++ trunk/cow/bin/cow-init.sh 2009-07-03 16:37:42 UTC (rev 1449)
@@ -50,6 +50,7 @@
# Log file to which standard output and error streams should be redirected
# Again if you're running multiple copies try e.g. COW_USER_HOME instead
LOGFILE="$COW_HOME/cow.log"
+[ -f $LOGFILE ] && mv $LOGFILE ${LOGFILE}.previous
# The location of ant (1.7 or later)
ANT_HOME=/opt/ant-1.7
@@ -70,7 +71,8 @@
case $1 in
start)
log_daemon_msg "Starting $NAME" "CoW"
- start-stop-daemon --start --quiet --oknodo --pidfile="$PIDFILE" --startas="/bin/sh" --chuid=$RUN_AS --chdir="$COW_HOME" --background --make-pidfile -- -c "exec $ANT -Dgate.cow.server.port=$COW_PORT -Dgate.cow.mode=$COW_MODE -Dgate.cow.user.home=$COW_USER_HOME run-prod 2>&1 >> $LOGFILE"
+ start-stop-daemon --start --quiet --oknodo --pidfile="$PIDFILE" --startas="/bin/sh" --chuid=$RUN_AS --chdir="$COW_HOME" --background --make-pidfile \
+ -- -c "exec $ANT -Dgate.cow.server.port=$COW_PORT -Dgate.cow.mode=$COW_MODE -Dgate.cow.user.home=$COW_USER_HOME run-prod 2>&1 >> $LOGFILE"
log_end_msg $?
;;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits