Skip to content

Lawtec

Sections
Personal tools
You are here: Home Members antonh's Home Articles Apr2003 Making Zope and Oracle startup nicely together.
Navigation
Log in


Forgot your password?
Licence
Creative Commons License

This work is licensed under a Creative Commons License.
Credits
 
Document Actions

Making Zope and Oracle startup nicely together.

by antonh last modified 07-Sep-06 11:48 AM

On our server, the Zope service is starting before the Oracle service is finished. The result is that the Zope server is running with all the connections closed. So the challenge is a way to make sure that the Zope startup waits for the Oracle server to finish first.

I've only got it in pseudocode at the moment:


  # make sure the Oracle databases are all running
  if (databases not running) 
	{
	if (the startup process isn't running) 
		{
		/sbin/service dbora start # or some such thing
		}

	while (dbstart still running)
      	       {
		wait
		}
	}

  # finally, start Zope
  /home/zope/start

I'll put the final solution up later.

Making Zope startup properly

Posted by antonh at 28-Apr-03 10:44 PM

It seems I was a little bit off the money. The problem seems to be unrelated to startup timing, and more to do with the service startup script. That is, when I do this:

# /sbin/service zope start

none of the DCOracle2 connections work at all. If however I do this:

# /home/zope/start

then they all do. I suspect it might have something to do with the INSTANCE_HOME environment variable. But I'll have to report back later.

 


This site conforms to the following standards: