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