#!/bin/sh
#
# Copyright 2008 Meru Networks
# All rights reserved.
#

PROC=/opt/meru/bin/nmsagent

START_DELAY=.2

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

if [ ! -f $PROC ]; then 
    exit 1
fi

#
# functions
#
monit_control_multi_threads $1

exit 0
