Unrealircd refuses connection

These are old archives. They are kept for historic purposes only.
Post Reply
[email protected]
Posts: 2
Joined: Wed Jul 04, 2012 2:07 pm

Unrealircd refuses connection

Post by [email protected] »

Hello, I realize that this is more of a BSD problem then a Unrealircd problem, but here it goes

I try to run Unrealircd at startup on a OpenBSD 5.1 machine and the System says it started the service but
when I try to connect it doesnt work.
However when I start it manually it works everytime, so when I type
/usr/ports/Unreal3.2/unreal start everything works fine.

But then I tried to make it startup as a deamon so I created a file in /etc/rc.d/ called unreal :
#!/bin/sh

daemon="/usr/ports/Unreal3.2/unreal"

. /etc/rc.d/rc.subr

rc_cmd $1

I also created a file in /etc called rc.conf.local

pkg_scripts="unreal"

So on startup it says :

starting package daemons:unreal.

but when I try to connect the server refuses connection

other things I have tried :

/etc/rc.d/unreal start

output :

unreal ok

but I can't connect

/usr/ports/Unreal3.2/unreal start

output :

UnrealIRCd ascii art and able to connect to my server

:?: :?: :?:
any help much apprieciated
cards
Posts: 85
Joined: Sat Jun 12, 2004 5:04 am

Re: Unrealircd refuses connection

Post by cards »

Could it be that trying to start it as a daemon is starting it as a different user than the owner and thus it cannot access unrealircd.conf???
NetAdmin
irc.420-HighTimes.com
cards
Posts: 85
Joined: Sat Jun 12, 2004 5:04 am

Re: Unrealircd refuses connection

Post by cards »

Also I would suggest cron.

Simply
crontab -e (From the account that owns unreal)
*/3 * * * * /usr/ports/Unreal3.2/ircdcron/ircdchk >/dev/null 2>&1

Then when the system is rebooted, it will automatically start within 3 minutes.
NetAdmin
irc.420-HighTimes.com
[email protected]
Posts: 2
Joined: Wed Jul 04, 2012 2:07 pm

Re: Unrealircd refuses connection

Post by [email protected] »

Thanks for your help, changing permissions and the user helped as well as cron . :D
Post Reply