#!/bin/sh
########################################################################
# Begin $/opt/midas/bin/signal-system-shutting-down
#
# Description : Used by MC host to indicate that the system is
#               shutting down.
#               DL2 specific version
#
# Authors     : MLA
#
# Version     : 00.00
#
# Notes       : none.
#
########################################################################


# Constants
#   NONE


# Include generic functions.
. /etc/rc.d/init.d/functions


#
# Determine what type of node this is executing on.
#
whatami TYPE ID


if [ "${TYPE}" = "MC" ]; then
	
	echo "SIGNALLING SYSTEM SHUTTING DOWN"
	/opt/midas/bin/mc-event-notifier 14001 192.168.20.10 1024 5 shutting-down
fi
