7 boxexec_full_path
=/usr
/sbin
/$boxexec
8 configfile_path
=/etc
/kannel
/kannel.conf
9 pidfile
=/var
/run
/$boxexec.pid
11 CMD
="/usr/sbin/run_kannel_box --min-delay 5 --pidfile $pidfile $boxexec_full_path $configfile_path"
12 PID
=$
(cat $pidfile 2>/dev
/null
)
16 stat_busy
"Starting $boxexec"
17 [ -z "$PID" ] && $CMD &> /dev
/null
26 stat_busy
"Stopping $boxexec"
27 [ ! -z "$PID" ] && kill $PID &> /dev
/null
41 echo "usage: $0 {start|stop|restart}"