Blame | Last modification | View Log | RSS feed
#!/bin/sh
#
# chkconfig: - 99 01
# description: start/stop VMware VMs
#
# Source function library.
. /etc/rc.d/init.d/functions
vmware_start() {
# Start Windows Server 2008 VM
/usr/bin/vmrun start /VMs/PDC/PDC.vmx nogui
}
vmware_stop() {
# Stop Windows Server 2008 VM
/usr/bin/vmrun stop /VMs/PDC/PDC.vmx nogui
}
case $1 in
start)
echo "Starting VMWARE VMs"
vmware_start
exit 0
;;
stop)
echo "Stopping VMWARE VMs"
vmware_stop
exit 0
;;
*)
echo "Usage: /etc/init.d/vmware start|stop" >&2
exit 0
;;
esac