How to reload configuration ?

Submitted by Anonymous on Thu, 2008-11-06 04:02.

Hi all,

I just installed tigase xmpp server successfully.

Now I want to be able to add / remove virtual hosts (domaine names) automagically when our users add / remove domain names in their interface.

So I use config.sh with the relevants -key -value -add etc.

It work perfectly, but I have to restart the server for the change to be effective.

Example : adding a domain name :


bin/config.sh -c etc/tigase.xml -print -key message-router/hostnames -add -value "lautre.net"
bin/config.sh -c etc/tigase.xml -print -key bosh/hostnames -add -value "lautre.net"
bin/config.sh -c etc/tigase.xml -print -key c2s/hostnames -add -value "lautre.net"
bin/config.sh -c etc/tigase.xml -print -key s2s/hostnames -add -value "lautre.net"
bin/config.sh -c etc/tigase.xml -print -key sess-man/hostnames -add -value "lautre.net"

Is there a command, signal or whatever is needed to tell the running tigase server that its configuration has changed ?

Thanks in advance for your help and congratulation for this wonderful software.

Regards,

Benjamin

Trackback URL for this post:

http://www.tigase.org/en/trackback/1462
kobit's picture
Submitted by kobit on Thu, 2008-11-06 20:28.

Right, you are right. Such a reload command would be very useful. Unfortunately it is not available right now.

We are going to re-implement virtual domains handling in the Tigase in the next release: 4.1. You will be able to store the vhosts in the database and they will be automatically picked up by the server. This is especially desired feature by installations with hundreds virtual hosts.... and I think it might be something you would be interested in too.

In mean time I can suggest a different way for changing the Tigase server configuration which doesn't require the server restart. Please have a look at Server configuration the XMPP way article. You can change the configuration, including vhosts using ad-hoc commands in your Jabber client (Psi). And this doesn't require the server restart. But please be careful. This feature is not yet well tested so please, when testing it for the first time, make sure you made a config backup before and are around for the server restart just in case. If you find any problems with this let me know. I will fix them ASAP.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.