The prophecy.sh file that's shipped with the MacOS X beta -- at least, the beta I just downloaded -- has several errors in it. the "plist" files have the wrong names, and the file that starts the management console (com.voxeo.vmc.plist) isn't called at all.
Here's a corrected prophecy.sh file. NOTE! I've moved the files from ~/Library/LaunchAgents to /opt/voxeo/LaunchAgents because I don't want Propechy to auto-start.
I'm putting in the minimum corrections here and avoiding the temptation to completely re-write the file...
#!/bin/bash
#set -x
usage()
{
echo "prophecy: Voxeo Prophecy Control script"
echo " Possible options are"
echo " stop [vserver|vxml|splunk|sipmethod|designer]"
echo " start [vserver|vxml|splunk|sipmethod|designer]"
echo " restart [vserver|vxml|splunk|sipmethod|designer]"
echo " run (vserver|vxml|splunk|sipmethod|designer)"
echo " help"
echo " status"
}
doLoad="false"
doUnload="false"
doInfo="false"
doRun="false"
sService=""
sPrefix="~/Library/LaunchAgents/"
sPrefix="/opt/voxeo/LaunchAgents/"
eval sPrefix="$sPrefix"
case "$1" in
help|-help|--help)
usage
exit 1
;;
stop|-stop|--stop)
doUnload="true";
;;
start|-start|--start)
doLoad="true";
;;
restart|-restart|--restart)
doUnload="true";
doLoad="true";
;;
run|-run|--run)
doRun="true";
;;
status|-status|--status|info|-info|--info)
doInfo="true";
;;
*) echo "Invalid option: $1"; usage; exit 1 ;;
esac
if test "$2" != ""; then
case "$2" in
vserver)
sService="com.voxeo.vserver.plist";
;;
vxml)
sService="com.voxeo.vxml.plist";
;;
splunk)
sService="com.voxeo.splunkd.plist "$sPrefix"com.voxeo.splunkweb.plist";
;;
sipmethod)
sService="com.voxeo.vsipmethod.plist";
;;
designer)
sService="com.voxeo.vdesigner.plist";
;;
mc)
sService="com.voxeo.vmc.plist" ;
;;
*) echo "Invalid service name: $2"; usage; exit 1 ;;
esac;
sService="${sPrefix}${sService}"
else
if test $doRun = "true"; then
usage;
exit 1;
fi;
sService=$sPrefix"com.voxeo.vdesigner.plist "$sPrefix"com.voxeo.splunkd.plist "$sPrefix"com.voxeo.splunkweb.plist "$sPrefix"com.voxeo.vsipmethod.plist "$sPrefix"com.voxeo.vxml.plist "$sPrefix"com.voxeo.vserver.plist "$sPrefix"com.voxeo.vmc.plist";
fi
if test $doUnload = "true"; then
launchctl unload $sService
fi
if test $doLoad = "true"; then
launchctl load $sService
fi
if test $doInfo = "true"; then
echo prophecy status command has not been implemented
fi
if test $doRun = "true"; then
echo prophecy run command has not been implemented
fi