Current File : //etc/vmware-caf/pme/scripts/start-ma
#!/bin/sh

helpMessage() {
   local defStartType=$1

   echo "*** $0 {startType}"
   echo "  Starts the Management Agent"
   echo "    startType: How to start the listener (daemon, foreground, valgrindMemChecks, valgrindProfiling) [default: $defStartType]"
   exit 1
}

startType="daemon"
if [ $# -gt 1 -o "$1" = "--help" ]; then
   helpMessage "$startType"
fi
if [ $# -ge 1 ]; then
   startType=$1
fi

scriptsDir=$(dirname $(readlink -f $0))
configDir=$scriptsDir/../config

. $scriptsDir/caf-common
sourceCafenv "$configDir"

processName="ManagementAgentHost"

#enableCoreFiles

startCafProcess "$startType" "$CAF_LOG_DIR" "$CAF_BIN_DIR" "$processName"