/opt/lotus/bin/server > $OUTPUT_LOG 2>&1 &
E.2 cleanup_domino.sh
#!/bin/ksh
NOTES_USER=notes
NOTES_PATH=/local/notesdata
PATH=$NOTES_PATH:/pot/lotus/bin:$HOME/bin:$PATH
count=0
NOTES_RUNNING= ps  fu $NOTES_USER | grep /opt/lotus | grep  v grep | grep
 v bash 
while [[  n $NOTES_RUNNING ]] ; do
sleep 10
count= expr $count + 1 
echo "... waiting "$count"0 seconds"
if [ $count  eq 1 ] ; then
echo "Domino server is still running after 2 minutes"
echo "Now ... he will dead"
for i in  ps  fu $NOTES_USER |grep lotus|grep  v grep |\
awk  { print $2 }  ; do
kill  9 $i
done
mems= ipcs  m | grep $NOTES_USER | awk  { print $2 }  
sems= ipcs  s | grep $NOTES_USER | awk  { print $2 }  
for j in $mems; do if [  n "$j" ];then ipcrm shm $j>tmp.lck;fi; done
for j in $sems; do if [  n "$j" ];then ipcrm sem $j>tmp.lck;fi; done
rm  f tmp.lck
exit
fi
NOTES_RUNNING= ps  fu $NOTES_USER | grep /opt/lotus | grep  v grep  
done
rm  f $NOTES_PATH/~notes.lck
echo Domino shutdown now completed
210
Linux Web Hosting with WebSphere, DB2, and Domino




  

Home

About Services Network Support FAQ Order Contact
 

Linux Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved