On Friday 13 May 2005 11:49 am, Ricky Wibowo wrote:
> Pak...
> Boleh minta config kannel nya gag??
> soalnya saya pusing, buat ngerti-in konfig nya??
> Japri saja...

aku taruh di http://deen.medanlinux.com/kannelconf.zip
foldernya taruh di /etc/

Ada SL45,S25,ME45,Modem ITegNo, dan FakeSMSC
Tingal di edit aja /etc/kannel/kannel.conf

ini script service nya (daemon)
/etc/init.d/kannel

#!/bin/sh
# Start/stop the Kannel boxes: One bearer box and one WAP box.

# This is the default init.d script for Kannel.  Its configuration is
# appropriate for a small site running Kannel on one machine.

# Make sure that the Kannel binaries can be found in $BOXPATH or somewhere
# else along $PATH.  run_kannel_box has to be in $BOXPATH.

BOXPATH=/usr/sbin
PIDFILES=/var/run
CONF=/etc/kannel/kannel.conf

USER=kannel
VERSION=""
#VERSION="-0.12.4"

RB=run_kannel_box$VERSION
BB=bearerbox$VERSION
WB=wapbox$VERSION
SB=smsbox$VERSION
SSD=daemon$VERSION

PATH=$BOXPATH:$PATH

# On Debian, the most likely reason for the bearerbox not being available
# is that the package is in the "removed" or "unconfigured" state, and the
# init.d script is still around because it's a conffile.  This is normal,
# so don't generate any output.
test -x $BOXPATH/$BB || exit 0

case "$1" in
  start)
    echo "Starting Kannel .... : bearerbox "
    $BB -v 2 $CONF &
    #echo -n " wapbox"
    # $WB $CONF &
    sleep 4
    echo  "Starting Kannel .... :  smsbox  "
    $SB -v 2 $CONF &
    echo "."
    ;;

  stop)
    echo -n "Stopping Kannel : ALL  "
    killall $BB
    echo "."
    ;;

  reload)
    # We don't have support for this yet.
    exit 1
    ;;

  restart|force-reload)
    $0 stop
    sleep 1
    $0 start
    ;;

  *)
    echo "Usage: $0 {start|stop|reload|restart|force-reload}"
    exit 1

esac
exit 0




--------------------------------
ini service fake-sms nya


#!/bin/sh
# Start/stop the Kannel boxes: One bearer box and one WAP box.

# This is the default init.d script for Kannel.  Its configuration is
# appropriate for a small site running Kannel on one machine.

# Make sure that the Kannel binaries can be found in $BOXPATH or somewhere
# else along $PATH.  run_kannel_box has to be in $BOXPATH.

BOXPATH=/usr/sbin
PIDFILES=/var/run
CONF=/etc/kannel/kannel-fake.conf

USER=kannel
VERSION=""
#VERSION="-0.12.4"

RB=run_kannel_box$VERSION
BB=bearerbox$VERSION
WB=wapbox$VERSION
SB=smsbox$VERSION
SSD=daemon$VERSION

PATH=$BOXPATH:$PATH

# On Debian, the most likely reason for the bearerbox not being available
# is that the package is in the "removed" or "unconfigured" state, and the
# init.d script is still around because it's a conffile.  This is normal,
# so don't generate any output.
test -x $BOXPATH/$BB || exit 0

case "$1" in
  start)
    echo "Starting Kannel .... : bearerbox "
    $BB -v 2 $CONF &
    #echo -n " wapbox"
    # $WB $CONF &
    sleep 4
    echo  "Starting Kannel .... :  smsbox  "
    $SB -v 2 $CONF &
    echo "."
    
    # Tail the Log and never Ends ... !!
    
    sleep 2
    
    tail -f /var/log/kannel/smsbox_access.log
    killall $BB
    ;;
  stop)
    echo -n "Stopping Kannel : ALL  "
    killall $BB
    echo "."
    ;;

  reload)
    # We don't have support for this yet.
    exit 1
    ;;

  restart|force-reload)
    $0 stop
    sleep 1
    $0 start
    ;;

  *)
    echo "Usage: $0 {start|stop|reload|restart|force-reload}"
    exit 1

esac

exit 0



-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis

Kirim email ke