#! /bin/bash
cyflexlogevent -t generic -m 1 -m "script" -m "$0" 

# This script starts the external data manager for CMX GC data loading.
#
# The main feature is that this insures that only one instance at a time
# is running.  If an instance is already running, it will be killed and
# a new instance started.
#
# Usage: /cyflex/cmds/start_cmxgc_loading
#
# Author: Rob Janes
# 
# History
#   09/29/16 - Rob Janes - Initial release.

# If this is already running, terminate it.
stop_cmxgc_loading

# Start the CMX GC loading application up.
DATE=`date +"%y%m%d"`
exec extdatman.cmx.gc >> /data/errors/extdatman.cmxgc.$DATE 2>&1 &
