We have seen a similar thing, however ours _usually_ shutdown within
30s... The SMS server is still on Debian Sarge however.
I usually do an strace on the process and see it's actually does a futex
(Don't have the exact line atm) operation. I always tought it was
actually waiting for all connection to be cleanly closed (?). I'm
usually able to use the "status" command till it's almost closed and see
which connections are still active.
However for log rotation, in sarge at least it's doing an HUP and we
never had issue I can recall...
/var/log/kannel/*.log {
daily
missingok
rotate 100
olddir /var/log/kannel/backup
compress
create 640 kannel adm
sharedscripts
postrotate
killall -HUP bearerbox smsbox wapbox > /dev/null 2>
/dev/null || true
endscript
}
Regards,
Mathieu Bruneau
-----Original Message-----
From: Jason Mule [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 11:02 AM
To: [email protected]
Subject: Kannel startup script does not stop bearerbox completely
Hi,
Can anyone else on this list confirm this? I have noticed that the
Kannel init script (Debian Etch, Kannel 1.4.1) does not stop bearerbox
completely when called. After calling 'start-stop-daemon --stop --retry
5 --pidfile $PIDFILES/kannel_bearerbox.pid --exec
$BOXPATH/run_kannel_box' , a bearerbox process remains which must be
killed manually or by adding a line similar to the one below to the init
script:
# Wait for bearerbox to finish
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec
$BOXPATH/bearerbox
--
Kind regards
Jason Mule