Error binding stream socket to IP

These are old archives. They are kept for historic purposes only.
Post Reply
Laterport
Posts: 8
Joined: Sun Jan 22, 2012 5:14 am

Error binding stream socket to IP

Post by Laterport »

Hello everyome!

I use UnrealIRCd 3.2.9 and I have a problem. When CRONtab tries to start Unreal (while it works), I get this message:
[Sat Sep 14 14:42:29 2013] - Error binding stream socket to IP (My IP) port 7029 - MY.IN.IRC.SERVER[]:Address already in use
What could be the problem?

Here is my crontab script:
#!/bin/sh
#
# UnrealIRCD Crontab v2.1
# $Id$
#
# This is a script suitable for use in a crontab. It checks to make sure
# your ircd is running. YOU NEED A SEPARATE CRON JOB FOR EACH IRCD. If your
# ircd isn't found, it'll try to start it back up.
#
# You'll need to edit this script for your ircd.
#
# To check for your ircd every 10 minutes, put the following line in your
# crontab:
# 0,10,20,30,40,50 * * * * /home/mydir/ircdchk
# And if you don't want to get email from crontab when it checks you ircd,
# put the following in your crontab:
# 0,10,20,30,40,50 * * * * /home/mydir/ircdchk >/dev/null 2>&1
#
# change this to the mail address to mail output to:
# MAIL=me

# These values shouldn't need to be changed

# The path to the ircd binary
ircdexe="/home/coder/data/www/my/Unreal/ircd"

# The path to the ircd pid file
ircdname="/home/coder/data/www/my/Unreal/ircd.pid"

########## you probably don't need to change anything below here ##########
if test -r $ircdname; then
# there is a pid file -- is it current?
ircdpid=`cat $ircdname`
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
# it's still going
# back out quietly
exit 0
fi
echo "UnrealIRCd Crontab notice:"
echo ""
echo "Stale $ircdname file (erasing it)"
rm -f $ircdname
fi
echo ""
echo "Couldn't find the ircd running. Reloading it..."
echo ""
$ircdexe
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Error binding stream socket to IP

Post by katsklaw »

This error is because something else is already bound to that IP/port. Most often the ircd is already running.
Post Reply