[JDEV] Playing with xdb files while jabberd is running.

worklists at dovkatz.net worklists at dovkatz.net
Fri Sep 27 11:24:28 CDT 2002

Hello, don't ask why this is necessary, but I have a production jabberd process using file-based xdb to store registration info for remote transports (such as toc,yahoo,etc).

Is there a deterministic behavior of jabberd if I were to move/delete an xdb file while everything is running?  I need to immediately remove users from a remote transport/gateway and while I can boot them by admin-ing the gateway, I need them to be temporarily unregistered so they cannot log back in.  The best solution I can think of is moving the xdb files, without stopping jabberd.

So, this is really 2 questions.

1) Does jabberd keep file handles open (thus will be connected to the inode on disk) to the xdb's even when it's done reading them? If so, moving the file won't help me.

2) If [1] is false, then what happens if I move the file? 

3) if [1] is true, what happens if i delete the file?

Thanks in advance

More information about the JDev mailing list