Tip of the day: Check out Special users on how to give trusted users/bots more rights without making them IRCOp.

Rehashing the IRCd

From UnrealIRCd documentation wiki
Jump to navigation Jump to search

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:


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 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 ..

Remote servers

You can REHASH another server on the network from IRC via REHASH remote.server.name. You can also REHASH all servers on the network via REHASH -global which is very useful if you use Remote includes.

On the shell (*NIX)

On non-Windows you can use the Command Line Interface. Go to the directory you installed UnrealIRCd in, for example cd /home/irc/unrealircd and there you can execute ./unrealircd rehash.

You will see immediately on the screen if the rehash was successful or not (and any warnings/errors).

On Windows

  • Via Command Line Interface: open a cmd.exe and cd C:\Program Files\UnrealIRCd 6\bin and then run unrealircdctl rehash. If there are any rehash warnings/errors, you will see them in your screen.
  • Or, when running UnrealIRCd in GUI mode: click on Rehash in the GUI menu, or right-click on the tray icon and select Rehash - All Files
    Be sure to check logs\ircd.log for errors after you rehashed.