Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/sh
2
#
3
# chkconfig: - 99 01
4
# description: start/stop VMware VMs
5
#
6
 
7
# Source function library.
8
. /etc/rc.d/init.d/functions
9
 
10
vmware_start() {
11
# Start Windows Server 2008 VM
12
	/usr/bin/vmrun start /VMs/PDC/PDC.vmx nogui
13
}
14
 
15
vmware_stop() {
16
# Stop Windows Server 2008 VM
17
	/usr/bin/vmrun stop /VMs/PDC/PDC.vmx nogui
18
}
19
 
20
case $1 in
21
        start)
22
                echo "Starting VMWARE VMs"
23
                vmware_start
24
                exit 0
25
        ;;
26
        stop)
27
                echo "Stopping VMWARE VMs"
28
                vmware_stop
29
                exit 0
30
        ;;
31
        *)
32
                echo "Usage: /etc/init.d/vmware start|stop" >&2
33
                exit 0
34
        ;;
35
esac