Page 1 of 1

Unrealircd refuses connection

Posted: Wed Jul 04, 2012 2:27 pm
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

Re: Unrealircd refuses connection

Posted: Thu Jul 05, 2012 3:47 am
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???

Re: Unrealircd refuses connection

Posted: Thu Jul 05, 2012 3:51 am
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.

Re: Unrealircd refuses connection

Posted: Thu Jul 05, 2012 8:38 am
Thanks for your help, changing permissions and the user helped as well as cron . :D