Here is a script we use for restarting kannel:

#!/bin/sh
clear
echo Restarting the process, please allow 15 seconds...
kill -9 $(/sbin/pidof smsbox)
kill -9 $(/sbin/pidof bearerbox)
cd /opt/gw
sleep 5
nohup ./bearerbox -v 1 > bearerbox.log &
sleep 5
nohup ./smsbox -v 1 > smsbox.log &
cd /root
clear
echo Restarted - Verify with web that both services are running.


Reply via email to