Rehashing the IRCd

After making changes to the configuration files (eg unrealircd.conf) or MOTD/RULES files you need to 'rehash' the IRCd. This tells the IRCd to re-read the configuration files and apply all the new settings.

There are a number of ways to do this:

On IRC
If you are an IRCOp on the server then you can just execute the command /REHASH

If you are already connected to the server (and IRCOp) then this is by far the easiest method. You get to see any warnings or errors in the (new) configuration as well via server notices.

[15:31:28] -irc.test.net- *** Notice -- OperX is rehashing server config file [15:31:28] -irc.test.net- *** Notice -- Loading IRCd configuration .. [15:31:28] -irc.test.net- *** Notice -- Configuration loaded without any problems ..

On the shell (*NIX)
On non-Windows you can use the Command Line Interface. Go to the directory you installed UnrealIRCd in, for example  and there you can execute.

If you are on UnrealIRCd 6.0.2 or newer you should see immediately if the rehash was successful or not (and any warnings/errors). No need to check logs.

If you are on an older UnrealIRCd versions then you should manually check logs/ircd.log for any problems:

irc@irc1.example.org:~/unrealircd$ ./unrealircd rehash Rehashing UnrealIRCd

irc@irc1.example.org:~/unrealircd$ tail logs/ircd.log [Sun Jun 28 15:27:42 2015] - Loading IRCd configuration .. [Sun Jun 28 15:27:42 2015] - Configuration loaded without any problems ..

On Windows

 * UnrealIRCd 6.0.2 or later
 * You can use the Command Line Interface: open a cmd.exe and  and then run.
 * UnrealIRCd in GUI mode (all versions)
 * Click on Rehash. Or right-click on the tray icon and select Rehash - All Files Be sure to check logs\ircd.log for errors after you rehashed.
 * UnrealIRCd in Service mode (all versions)
 * Open an elevated(!) command prompt and  and then run unrealsvc rehash Be sure to check logs\service.log and logs\ircd.log for errors after you rehashed.