Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rb:restartplatform [10/10/2013 14:21]
127.0.0.1 external edit
rb:restartplatform [18/07/2019 15:54] (current)
andrew
Line 2: Line 2:
  
   #!/bin/bash   #!/bin/bash
-  #Restart Platform WL Process Daily - DK +  #Restart Platform WL Process Daily 
-  #modified Andrew ​Stringer, 04/01/2011 to only send mail in case of failure+  #modified Andrew , 04/01/2011 to only send mail in case of failure
   ​   ​
   #Set Up Script Variables   #Set Up Script Variables
Line 11: Line 11:
   LOG=/​tmp/​`hostname`-wlrestart.log   LOG=/​tmp/​`hostname`-wlrestart.log
   MAIL=xx-noc@zzz.com   MAIL=xx-noc@zzz.com
-  SCRIPT1=/wworks/rgs/​weblogic/​prod/​bin/​weblogic.platform.managed+  SCRIPT1=/​weblogic/​prod/​bin/​weblogic.platform.managed
   SCRIPT1OPT=restart   SCRIPT1OPT=restart
-  WLLOGDIR=/wworks/rgs/​weblogic/​prod/​logs/​ +  WLLOGDIR=/​weblogic/​prod/​logs/​ 
-  WLPLATLOG=platform-prod-managed-04.log+  WLPLATLOG=platform-prod.log
   SLEEPWAIT=180   SLEEPWAIT=180
   READLINES=400   READLINES=400
Line 36: Line 36:
           echo "​Server ${HOST} does not appear to have started correctly"​ >> ${LOG}           echo "​Server ${HOST} does not appear to have started correctly"​ >> ${LOG}
           echo " " ​ >> ${LOG}           echo " " ​ >> ${LOG}
-          echo "From /home/wworks/​ops/​restart_platform.sh on ${HOST}"​ >> $LOG+          echo "From /home/weblogic/​ops/​restart_platform.sh on ${HOST}"​ >> $LOG
           echo " " >> ${LOG}           echo " " >> ${LOG}
   ​   ​
           #Mail Out           #Mail Out
           echo "​Sending notification mail.."​ >> ${LOG}           echo "​Sending notification mail.."​ >> ${LOG}
-          mail ${MAIL} -s "​${HOST} - RGS Managed Restart @ ${DATE}"​ < ${LOG}+          mail ${MAIL} -s "​${HOST} - Weblogic ​Managed Restart @ ${DATE}"​ < ${LOG}
   ​   ​
           exit 1           exit 1
Line 52: Line 52:
           echo "​Server started in RUNNING mode" >> ${LOG}           echo "​Server started in RUNNING mode" >> ${LOG}
           echo " " >> ${LOG}           echo " " >> ${LOG}
-          echo "From /home/wworks/​ops/​restart_platform.sh on ${HOST}"​ >> $LOG+          echo "From /home/weblogic/​ops/​restart_platform.sh on ${HOST}"​ >> $LOG
           echo " " >> ${LOG}           echo " " >> ${LOG}
   ​   ​
           #Mail Out           #Mail Out
           echo "​Sending notification mail.."​ >> ${LOG}           echo "​Sending notification mail.."​ >> ${LOG}
-          #mail ${MAIL} -s "​${HOST} - RGS Managed Restart @ ${DATE}"​ < ${LOG}+          #mail ${MAIL} -s "​${HOST} - Weblogic ​Managed Restart @ ${DATE}"​ < ${LOG}
   fi   fi
   ​   ​

rb/restartplatform.txt · Last modified: 18/07/2019 15:54 by andrew