powered by Jive Software

Starting without DB connection

Hi all,

I have an issue when, after a power failure, my servers boot.

Openfire runs before the PgSQL server is up an running and it

dies. Therefore, I have to manually restart it.

I would like to know if there is a way to get it waiting for

DB connection, or may be implemented in a future release.

For now, I can put a delay in the startup script, but it is

a bad hack.

Hi,

In case your server is linux os.Check on top your script file, you can see similar thing like this:

With openfire : # chkconfig: 2345 99 1 --> openfire will start last and finish first

With database: # chkconfig: - 74 36 ** --> in my case
**

(First group numbers is runlevel, second startup order and last one shutdown order)

Check again your database service.

That trick is fine in a one-server scenary, but by database is in another machine, which boots slower than the machine that hosts Openfire.

Hi,

this is a nice feature request, anyhow I really wonder how often you boot your servers. If one would provide a patch this could be added to Openfire, but with only one more or less active developer and a few bugs which should be first resolved it makes little sense to create such an issue.

LG