3
COMMAND=/usr/sbin/jabberd2-${NAME}
4
PIDFILE=/var/run/jabberd2/${NAME}.pid
5
CONFFILE=/etc/jabberd2/${NAME}.xml
12
# exit now if we are not ment to run.
13
test "${RUN}" != 0 || exit 0
15
# check for executable
16
test -f ${COMMAND} || exit 0
21
if [ ! `pidof ${COMMAND}` ]; then
22
start-stop-daemon -b -c ${USER}:${GROUP} \
23
--start --pidfile ${PIDFILE} --quiet \
24
--exec ${COMMAND} -- -c ${CONFFILE} || echo -n "<Failed>"
29
start-stop-daemon -o -u ${USER} --stop --quiet \
30
--signal 15 --retry 3 --pidfile ${PIDFILE} \
31
--exec ${COMMAND} || echo -n "<Failed>"
39
echo "`basename $0` called with unknown option {$1}"