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
Unrealircd refuses connection
Re: Unrealircd refuses connection
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
irc.420-HighTimes.com
Re: Unrealircd refuses connection
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.
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
irc.420-HighTimes.com
-
- Posts: 2
- Joined: Wed Jul 04, 2012 2:07 pm
Re: Unrealircd refuses connection
Thanks for your help, changing permissions and the user helped as well as cron .