You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/02/26 11:17:01 UTC

svn commit: r631154 - /lenya/zone/bin/nightly-docu.sh

Author: andreas
Date: Tue Feb 26 02:16:58 2008
New Revision: 631154

URL: http://svn.apache.org/viewvc?rev=631154&view=rev
Log:
Adding script to restart the documentation server.

Added:
    lenya/zone/bin/nightly-docu.sh   (with props)

Added: lenya/zone/bin/nightly-docu.sh
URL: http://svn.apache.org/viewvc/lenya/zone/bin/nightly-docu.sh?rev=631154&view=auto
==============================================================================
--- lenya/zone/bin/nightly-docu.sh (added)
+++ lenya/zone/bin/nightly-docu.sh Tue Feb 26 02:16:58 2008
@@ -0,0 +1,31 @@
+#!/usr/bin/bash
+help()
+{
+ cat <<HELP
+
+This script will start the Lenya documentation server
+http://lenya.zones.apache.org:7777/index.html
+
+HELP
+}
+
+source /export/home/lenya/bin/setenv.sh
+source /export/home/lenya/bin/mail.sh
+umask 0002
+logfile=$DOC_ROOT/log/lenya.docu.update.log 
+echo "Restarting Lenya documentation server" > $logfile
+echo "starting date is " >> $logfile
+date >> $logfile
+
+cd /export/home/lenya/src/lenya-docu
+
+#first, kill running Lenya instance
+echo >> $logfile
+echo "#first, kill running lenya instance" >> $logfile 
+DOCU_PID=`cat /export/home/lenya/bin/lenya-docu.pid`
+ps -ef |grep lenya|grep $DOCU_PID|grep -v grep|awk '{print "kill -9 "$2}'|sh >> $logfile
+rm /export/home/lenya/bin/lenya-docu.pid  >> $logfile
+
+echo "#starting" >> $logfile 2>&1
+./lenya.sh servlet >> $logfile 2>&1 &
+echo $! > /export/home/lenya/bin/lenya-docu.pid

Propchange: lenya/zone/bin/nightly-docu.sh
------------------------------------------------------------------------------
    svn:executable = *



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