---------- Forwarded message ----------
From: spameden <[email protected]>
Date: 2012/7/30
Subject: Re: start sqlbox service
To: Ravindra Gupta // Viva <[email protected]>
Cc: [email protected], [email protected]
You can do this with start-stop-daemon, here are two examples:
SQLCONF=/etc/kannel/sqlbox.conf
DEBULVLV=3
BOXPATH=/usr/sbin
PIDFILES=/var/run/kannel
# start
start-stop-daemon --start --quiet \
--pidfile $PIDFILES/kannel_sqlbox.pid \
--chuid kannel \
--exec $BOXPATH/run_kannel_box \
-- \
--pidfile $PIDFILES/kannel_sqlbox.pid \
--no-extra-args \
$BOXPATH/sqlbox -v $DEBUGLVL -- $SQLCONF
# stop
start-stop-daemon --stop --retry 5 --quiet \
--pidfile $PIDFILES/kannel_sqlbox.pid \
--exec $BOXPATH/run_kannel_box
or you can use simple killall method.
2012/7/30 Ravindra Gupta // Viva <[email protected]>
> Dear Team,
>
> How to restart sequence wise sqlbox service.
>