⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kannel-init.d

📁 The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword b
💻 D
字号:
#!/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/binPIDFILES=/var/runCONF=/etc/kannel/kannel.confUSER=kannelVERSION=""#VERSION="-0.12.4"RB=run_kannel_box$VERSIONBB=bearerbox$VERSIONWB=wapbox$VERSIONSB=smsbox$VERSIONSSD=start-stop-daemon$VERSIONPATH=$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 0case "$1" in  start)    echo -n "Starting WAP gateway: bearerbox"    $SSD --start --quiet --pidfile $PIDFILES/kannel_bearerbox.pid --exec $RB -- --pidfile $PIDFILES/kannel_bearerbox.pid $BB -- $CONF    echo -n " wapbox"    $SSD --start --quiet --pidfile $PIDFILES/kannel_wapbox.pid --exec $RB -- --pidfile $PIDFILES/kannel_wapbox.pid $WB -- $CONF#    echo -n " smsbox"#    $SSD --start --quiet --pidfile $PIDFILES/kannel_smsbox.pid --exec $RB -- --pidfile $PIDFILES/kannel_smsbox.pid $SB -- $CONF    echo "."    ;;  stop)    echo -n "Stopping WAP gateway: wapbox"    $SSD --stop --quiet --pidfile $PIDFILES/kannel_wapbox.pid --exec $RB#    echo -n " smsbox"#    $SSD --stop --quiet --pidfile $PIDFILES/kannel_smsbox.pid --exec $RB    echo -n " bearerbox"    $SSD --stop --quiet --pidfile $PIDFILES/kannel_bearerbox.pid --exec $RB    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 1esacexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -