• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Handling Weblogic sever recycle

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to automate the process of recylcing my Weblogic Production server. So instead of starting the Weblogic admin server and then the managed servers separately, I wish to put the entire sequence in a shell script.
eg.my script would be restartProd.sh which calls stopServices.sh and startServices.sh
In the case of the stopServices script, which is the best and safest way to identify that the admin and managed server processes have stopped.
Now in startServices.sh, I use
tail -1 nohup.wladmin | grep -ic "Production Mode"
where nohup.wladmin is the file which is created when i run the script by putting >> in the original command.
If this returns true, admin server has started. So, I issue commands to start webdriver and txn server in the script. Since webdriver starts soon, I just put a sleep 60 after the command. But the problem is txn server takes time and thats not exactly predictable. How do I deal with this. Any idea ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic