Problem with /restart on FreeBSD

These are old archives. They are kept for historic purposes only.
Post Reply
Wabbit
Posts: 5
Joined: Mon Dec 27, 2004 12:29 am

Problem with /restart on FreeBSD

Post by Wabbit »

when I use the command /restart or the script file unreal and do a /unreal restart the server just shuts down and doesn't restart and I get nothing in the log file. I noticed that the script file uses the command kill -1 for rehash and kill -2 for restart
Unfortunatelly kill -2 doesn't restart unrealircd it justs kills it.
on the man page of kill i see that it causes an interupt
2 INT (interrupt)

any hints ?[/b]
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Can you still start it manually?
Wabbit
Posts: 5
Joined: Mon Dec 27, 2004 12:29 am

Post by Wabbit »

Yes it's not a problem to start it.. just the problem is to restart
i told you that the kill -2 doesn't seem to restart the pid..
and kill -1 just does a rehash.
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

There seem to be some problems with killing w/SIGINT after 1 restart the 2nd kill -2 seems to cause weird behavior (on Linux it simply gets ignored, and you say it kills the ircd).
That said.. /restart from the ircd itself (so not on the shell) should work just fine and infinite times. Unless there's a config error or some other problem it should restart just fine.
Wabbit
Posts: 5
Joined: Mon Dec 27, 2004 12:29 am

Post by Wabbit »

well that's the thing.. /restart doesn't work either.. and the script doesn't work.. so there is no possible way for me to restart
any hints ?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

And with 'does not work' you mean /restart kills your server but does not get it started again? If so, did you check logs?
Wabbit
Posts: 5
Joined: Mon Dec 27, 2004 12:29 am

Post by Wabbit »

yes you got it clear
does not work means it justs kills the server and doesn't start again
and as i wrote on my first post there is nothing in the logs
i checked any possible log that might interfere
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Odd, never heard of.
I suggest you to report it on http://bugs.unrealircd.org/
Wabbit
Posts: 5
Joined: Mon Dec 27, 2004 12:29 am

Post by Wabbit »

Can I run unrealircd in debug mode on the foreground ?
This will really help me find out what is going on.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

If you do: src/ircd -F then Unreal will run in the foreground.
-- codemastr
Post Reply