#!/bin/bash

# stopSNMPD
#
# Usage:
#    stopSNMPD <pid> <pid file>
#
# Description:
#    This script stops the SNMP daemon for the console by killing the
#    snmpd process as specified by the pid contained in the pid file.
#
# Return Codes
#    0: normal script termination; no unrecoverable errors
#    1: error stoping the SNMP daemon
#
# Module History
#    00  03/12/2003  P. Provost  - Initial Release

PID=$1
PIDFILE=$2
                                                
# kill the snmpd process as specified by the pid
kill -9 $PID

# delete the associated pid file
rm -f $PIDFILE
