Ratno,

This question really has nothing to do with kannel but with basic sys adminb issues.

The reason there is no kannel in /etc/init.d is because you have to create a startup script and put it there.  You also have to make sure that it gets executed on start up.  For your information I have included such a startup script.


#!/bin/sh
#
# Startup script for the Kannel WAP and SMS box
#
# chkconfig: - 90 20
# description: Kannel is a WAP and SMS server for use with the mobile telphony networks
# processname: kannel
# config: /usr/local/smsgateway/conf/smskannel.conf

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""


# Use in the two following lines the path to your kannel installation

KANNEL_HOME=/usr/local/smsgateway        
KANNEL_SBIN=/usr/local/smsgateway/sbin
KANNEL_OWNER=sms
export KANNEL_HOME KANNEL_SBIN KANNEL_OWNER

start() {
        echo -n "Starting kannel:  "
        su $KANNEL_OWNER -c '$KANNEL_SBIN/bearerbox $KANNEL_HOME/conf/smskannel.conf &'
        # Make lock for RedHat / SuSE
        if test -w /var/lock/subsys
        then
          touch /var/lock/subsys/kannel_bearerbox
        else
          echo "Can't execute $KANNEL_SBIN/bearerbox"
        fi

        sleep 2

        su $KANNEL_OWNER -c '$KANNEL_SBIN/smsbox $KANNEL_HOME/conf/smskannel.conf &'
        # Make lock for RedHat / SuSE
        if test -w /var/lock/subsys
        then
          touch /var/lock/subsys/kannel_smsbox
        else
          echo "Can't execute $KANNEL_SBIN/smsbox"
        fi
        }

stop() {
        # Stop daemons.
        echo -n "Shutting down smsbox (kannel): "
        killproc $smsbox
        echo -n "Shutting down bearerbox (kannel): "
        killproc $bearerbox
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        start
        ;;
  *)
        echo $"Usage: tomcat {start|stop|restart}"
        exit
esac





Ratno Putro wrote:
sori but one more question,
i dont know why there is no kannel in  directory /etc/rc.d/init.d/ ,
so i cannot start the kannel but i can use bearerbox and smsbox.
i dont know about any effect if kannel doesn't present on that directory.

once again thanx
ratno

On Mon, 21 Feb 2005 16:53:11 +0700, Ratno Putro <[EMAIL PROTECTED]> wrote:
  
hi all,
help me plz, my kannel is the stable one, but it can't work with mysql
for its dlr.
is there any patch for it?
thanx

best regards,
ratno

    



  

Reply via email to