#!/bin/sh
#
# Copyright 2003 Meru Networks
# All rights reserved.
#
PROC=/opt/meru/bin/mdebugd

# There needs to be a longer delay for this first process to start
# after monit starts since once in a while there a race condition
# where this process doen not start in time.
START_DELAY=.8

MNAME=`basename $PROC`
PIDFILE=/opt/wlan/var/run/${MNAME}.pid
LOG=/opt/wlan/var/log/${MNAME}.log

if [ -f /etc/init.d/meru-functions ]; then
	. /etc/init.d/meru-functions
else
	echo "/etc/init.d/meru-functions must exist to use $0"; exit 1
fi

#
# functions
#
monit_control_multi_threads_without_writepid $1

exit 0
