[Serusers] Problems with postgres module in ser-0.9.3

Michael Ulitskiy mdu113 at acedsl.com
Mon Jul 18 21:10:48 CEST 2005


I've been playing with ser for a while checking it in different
scenarios. All this time I used it with 
fork=no
log_stderror=yes
settings and it worked. 
Now I've come up with some draft ser.cfg and wanted to
run it as daemon. I've changed it to
fork=yes
log_stderror=no
and now ser doesn't start. Actually "log_stderror=no" is the setting
that causes problem. If it's set to "yes", ser starts fine even in forked
mode.
Also I narrowed down the problem to postgres module. If I remove it
from ser.cfg then ser starts as it should.
With postgres module enabled it doesn't throw a word of complaint to
a log and it looks fine from console:

root at pg1old:~/src/ser/ser-0.9.3# /usr/local/ser/sbin/ser -f /etc/ser/ser.cfg
Listening on
             udp: 192.168.0.61 [192.168.0.61]:5060
             tcp: 192.168.0.61 [192.168.0.61]:5060
Aliases:
             tcp: pg1old:5060
             tcp: pg1old.acecape.com:5060
             udp: pg1old:5060
             udp: pg1old.acecape.com:5060
             *: 192.168.0.61:*

but
root at pg1old:~/src/ser/ser-0.9.3# ps -auxw | grep ser
root     18322  0.0  0.3 38836 1824 ?        S    15:05   0:00 /usr/local/ser/sbin/ser -f /etc/ser/ser.cfg

shows that there's just one ser process running, netstat shows that it's not listening on any port and
also no FIFO file is created.
Again everything works fine if "log_stderror" set to "yes".
Looks to me as some strange bug. Any clues?
Thanks,

Michael Ulitskiy




More information about the sr-users mailing list