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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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 = *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.