Module for the config files download, request
Posted: Wed Mar 08, 2006 9:00 pm
Though I do like the way you can include config files it has it limitations. If the server goes down where you have them and you find yourself with a server that has rebooteed. You are not able to start up the irc server since the config files you need is not accesible.
I have started to that there could be another way to do this. If its possible to have a module distribute a config file to the other servers by a command?
Say you modify a config file on server a, you then as a oper issue the command /xxxx configfile and the file is distributed to the other servers and the servers also do a rehash if the file was succesfully distributed to the other servers.
This way you could have the best of two worlds, you can modify it in one place but you can distribute it to the other server very easily. Much like you can with include. You are never in the hands of the server that holds the config files since they are local.
Problem is if two opers modifes the same file and sends it out while the other oper is still modifying the file. Then you will lose the modification of what one oper did. Same problem if the servers is not linked and one oper then modifes a config file how do the servers now how to distribute the file when they link up. And if the same file is modied on both servers while the servers is not linked?
I dont know if this is something that can bee looked at all or as a module or if its something for the unrealserver itself? Or if its just a plain dumb idea
I dont know much about module programming so if someone think that this might be a good idea Im willing to help out with what I can help out with.
I have started to that there could be another way to do this. If its possible to have a module distribute a config file to the other servers by a command?
Say you modify a config file on server a, you then as a oper issue the command /xxxx configfile and the file is distributed to the other servers and the servers also do a rehash if the file was succesfully distributed to the other servers.
This way you could have the best of two worlds, you can modify it in one place but you can distribute it to the other server very easily. Much like you can with include. You are never in the hands of the server that holds the config files since they are local.
Problem is if two opers modifes the same file and sends it out while the other oper is still modifying the file. Then you will lose the modification of what one oper did. Same problem if the servers is not linked and one oper then modifes a config file how do the servers now how to distribute the file when they link up. And if the same file is modied on both servers while the servers is not linked?
I dont know if this is something that can bee looked at all or as a module or if its something for the unrealserver itself? Or if its just a plain dumb idea
I dont know much about module programming so if someone think that this might be a good idea Im willing to help out with what I can help out with.