Hello Kannel'ers,
I am new to kannel, but I have managed to configure it for a wap gateway.
Now I want a HA service from the wap gateway and daemontools seems right
tool to achieve this. The problem I am seeing is that under daemontools,
I always have an error, that I am unable to figure out a solution for.
My "run" file looks like this:
# less run
#!/bin/sh
# supervise script for SNORT Intrusion Database System
#
# Configuration
WAPSERVER="/usr/local/sbin/bearerbox"
SERVERARGS="-v 1"
CONF="/usr/local/etc/wapkannel.conf"
OPTIONAL="multilog '+*'"
exec $WAPSERVER $SERVERARGS $CONF \
2>&1 | multilog t s10000000000 n20 ./log
The one for wapbox looks almost the same:
bash-2.05b# less ../wapbox/run
#!/bin/sh
# supervise script for SNORT Intrusion Database System
#
# Configuration
SMSSERVER="/usr/local/sbin/wapbox"
SERVERARGS="-v 1"
CONF="/usr/local/etc/wapkannel.conf"
exec $SMSSERVER $SERVERARGS $CONF \
2>&1 | /usr/local/bin/multilog t s10000000000 n20 ./log
The errors that I get look thus:
@400000003f434c841e4d31cc 2003-08-19 12:22:01 [0] ERROR: System error 48: Address
already in use
@400000003f434c841e4d493c 2003-08-19 12:22:01 [0] ERROR: Couldn't bind a UDP socket to
port 9200
@400000003f434c841e4f77d4 2003-08-19 12:22:01 [0] ERROR: System error 48: Address
already in use
@400000003f434c841e4f9714 2003-08-19 12:22:01 [0] ERROR: Couldn't bind a UDP socket to
port 9201
@400000003f434c841e4fae84 2003-08-19 12:22:01 [0] ERROR: System error 48: Address
already in use
@400000003f434c841e4fc5f4 2003-08-19 12:22:01 [0] INFO:
----------------------------------------
@400000003f434c841e4fe14c 2003-08-19 12:22:01 [0] INFO: Kannel bearerbox II version
1.2.1 starting
@400000003f434c841e505e4c 2003-08-19 12:22:01 [7] ERROR: bind failed
@400000003f434c841e5079a4 2003-08-19 12:22:01 [7] ERROR: System error 48: Address
already in use
@400000003f434c841e509114 2003-08-19 12:22:01 [7] PANIC: Could not open wapbox port
9201
@400000003f434c8510800d6c 2003-08-20 13:24:59 [0] INFO: Debug_lvl = 1, log_file =
<none>, log_lvl = 0
@400000003f434c8512c058ac 2003-08-20 13:24:59 [0] WARNING: DLR: using default
'internal' for storage type.
@400000003f434c8512d1295c 2003-08-20 13:24:59 [0] INFO: Added logfile `/dev/null' with
level `1'.
@400000003f434c8513e6ead4 2003-08-20 13:24:59 [0] ERROR: bind failed
@400000003f434c8513e70dfc 2003-08-20 13:24:59 [0] ERROR: System error 48: Address
already in use
@400000003f434c8513f74a3c 2003-08-20 13:24:59 [0] ERROR: Couldn't bind a UDP socket to
port 9200
@400000003f434c8513f7697c 2003-08-20 13:24:59 [0] ERROR: System error 48: Address
already in use
@400000003f434c851404716c 2003-08-20 13:24:59 [0] ERROR: Couldn't bind a UDP socket to
port 9201
@400000003f434c85140490ac 2003-08-20 13:24:59 [0] ERROR: System error 48: Address
already in use
@400000003f434c85141eac44 2003-08-20 13:24:59 [0] INFO:
----------------------------------------
..yes, there are NOT any other bearerbox processes running!
bash-2.05b# sockstat -l | grep bearerbox
root bearerbox 89148 9 tcp4 *:13000 *:*
root bearerbox 89148 16 udp4 *:9200 *:*
root bearerbox 89148 21 udp4 *:9201 *:*
root bearerbox 89148 32 tcp4 *:9201 *:*
That is same pid!
Since these errors make the log file grow so fast, I decided to symlink
the log file to /dev/null, but I surelu know this is imperfect.
Does someone have a cool/nice way of running kannel under daemontools
on FreeBSD.
I am choking with this problem.
-Wash
--
Odhiambo Washington <[EMAIL PROTECTED]> "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD."
GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-)
"The warning message we sent the Russians was a calculated ambiguity
that would be clearly understood."
-- Alexander Haig