About the number of processes, it depends on the RedHat Version that you are using, Redhat v7.2's pthread implementation is not POSIX-Compliant, so you will see a lot of processes, but for Redhat v9.0 (I think the only distro), you will only see 4 processes, one of run_kannel_box, one for bearerbox...etc
From what I could tell from the kannel.init script, the main problem is kannel is written in a not so SysV-script friendly way... I was quite surprised that we have to use start-stop-daemon, and run_kannel_box, which I think duplicates the work of some SysV functions like "daemon"... No solution for your for this one, as I am struggling myself in this area too!
Cheers, Phuah Yee Keat
BK wrote:
Hi,
I have a RedHat v7.2 i386 machine running on gateway v1.0.3. I have tried to send unicode SMS messages but it failed to work. I tried to install the gateway v1.3.1 on RHv7.2 but found that it is not recommended. So I set up a RedHat v9 machine and installed the gateway v1.3.1 but it could not send and receive SMS. I tried stable ver1.2.1 but it also could not work. Initially I faced some errors during sending when I use the old config with smsc = at on the new machine. So I change it to smsc = at2 and added the modem config. Now I do not see any errors at the logs, but I still cannot send and receive SMS. Something I notice: The old machine started a few threads of bearerbox, which can be seen when I do ps -ef|grep box, but the v1.2.1 or v1.3.1 has only 4 processes, 2 run_kannel_box, smsbox and bearerbox. Using smsc = at, I can stop the 4 processes with the kannel at /etc/rc.d/init.d but with smsc = at2, I must kill the remaining bearerbox process, which cannot be terminated with /etc/rc.d/init.d/kannel Pls help. My deadline was up. Thanks in advance.
kannel.conf with smsc = at and is working at the old machine:
group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar log-file = "/tmp/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "659,9,659" access-log = "/var/www/html/bearer.txt"
group = smsc smsc = at smsc-id = INCOMING modemtype = wavecom device = /dev/ttyS0
group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 123 log-file = "/tmp/smsbox.log" log-level = 0 access-log = "/tmp/smsaccess.log"
group = sms-service keyword = default accepted-smsc = INCOMING url = "http://localhost/cgi-bin/gotsms.pl?sender=%p&text=%r" header = "-- H -- " max-messages = 0
group = sendsms-user username = sms password = sms max-messages = 4 concatenation = 0 user-allow-ip = "10.1.1.11"
kannel.conf with smsc = at2:
group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar log-file = "/tmp/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "659,9,659" access-log = "/var/www/html/bearer.txt"
group = smsc smsc = at2 smsc-id = INCOMING modemtype = wavecom device = /dev/ttyS0
group = modems id = wavecom name = Wavecom detect-string = "WAVECOM"
group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 123 log-file = "/tmp/smsbox.log" log-level = 0 access-log = "/tmp/smsaccess.log"
group = sms-service keyword = default accepted-smsc = INCOMING url = "http://localhost/cgi-bin/gotsms.pl?sender=%p&text=%r" header = "-- H -- " max-messages = 0
group = sendsms-user username = sms password = sms max-messages = 4 concatenation = 0 user-allow-ip = "10.1.1.11"
