Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Ircd Type Question.
Alyxandrik
post Jun 2 2004, 01:09 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



I recently downloaded Beware IRCd, and services, on my Knoppix 3.3 box. I went to rehash the server after making a few changes, and couldn't. I'm trying to think of a way to be more descriptive, but I'm having trouble thinking. Anyway, I was just wondering if there's anyway to execute a batch file on a process?

If you need anything else, please let me know. blink.gif
Go to the top of the page
 
+Quote Post
Termina
post Jun 2 2004, 01:13 PM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



I don't think so. =D

try 'ps -C ircd' (or whatever the program is called in this case), and then kill it's process ID number (example: kill 1243)

Then run the program again (example: ircd &) and any changes you had done while it was running beforehand should now take effect (if I understand you correctly).


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Alyxandrik
post Jun 2 2004, 01:17 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



But this is for an IRC server, so if I have some people on it, they'll all be knocked off.

Let me refraze my first post, as I understand it was confusing. Sorry, just extremly tired.

I downloaded an IRCd, beware IRCd, from www.bircd.net. I downloaded it's Linux version, and ran it. I went to configure the ircd.conf, saved it, and went to rehash the server, or reload the config files, in other word. I went to oper myself, and found that it didn't rehash, so I tried again. Same results. I guess basically I'm just trying to find out how I can reload all of the configuation files.
Go to the top of the page
 
+Quote Post
Termina
post Jun 2 2004, 01:20 PM
Post #4


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



To reload the config files, you must restart the ircd server.

You shouldn't have to change your config files after your server is stable, so it shouldn't be an issue.

You could make a bash script to do this for you (which users wouldn't notice, generally the client doesn't notice the disconnect for some time):

QUOTE
#!/bin/bash
killall ircd
/path/to/program/ircd &


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Alyxandrik
post Jun 2 2004, 01:23 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



But what if I'd like to add an IRCop? I would need to edit my config files in order to do this.

One of my configuration files, atleast. Maybe you might be able to recommend a Linux IRCd that doesn't require me to rehash my server to add IRCops?
Go to the top of the page
 
+Quote Post
Termina
post Jun 2 2004, 01:43 PM
Post #6


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Are you sure you need to restart the IRC server for that?

I wouldn't think so.

Only your main config will probally need a restart of your IRCd. And all IRCds are like that. smile.gif

Even if you do need to, you probally won't be adding IRCops often (shouldn't atleast).


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Alyxandrik
post Jun 2 2004, 02:11 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



Not restarting, rehashing. Even fi I don't add IRCops often, I'd still like to be able to do it without having to restart the server.
Go to the top of the page
 
+Quote Post
Termina
post Jun 2 2004, 02:34 PM
Post #8


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Unless I'm greatly mistaken, you cannot. happy.gif

If you want the server to read from a config file, you need to restart it. You can't just edit it on the fly, and except it to read the config file constantly for changes.

You must have the program read the config file. To do this, restart the service.


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Alyxandrik
post Jun 2 2004, 02:39 PM
Post #9


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



Did you read what I said carfully? I know that they don't constantly read the configuration files. That's what rehashing is for. It makes the server look at the new changes to the configuration files. If you use beware ircd for windows, and make a change to ircd.conf, you rehash the server, which makes it read the configuration files/update accordingly. You don't have to resart the whole server.
Go to the top of the page
 
+Quote Post
Termina
post Jun 2 2004, 02:45 PM
Post #10


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



You don't seem to be hearing me very clearly.

Rehashing did what I told you to do. It quickly shuts down the server, reads the config, and starts it back up. Virtually no downtime, just like in the bash script I gave you.

In other words, it stops running the original config that is now altered, and now reads from the updated config file.


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Alyxandrik
post Jun 2 2004, 02:49 PM
Post #11


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 2-June 04
Member No.: 3,075



Just give me a minute to think up some kind of idiotic retort so I don't sound like TOO too much of a jackass dry.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 11:59 PM