Magellan Linux

Annotation of /trunk/vmware-workstation/vmware.rc6

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1031 - (hide annotations) (download)
Sun Apr 25 23:13:32 2010 UTC (14 years ago) by niro
File size: 1135 byte(s)
-include rc from conf.d

1 niro 12 #!/bin/bash
2 niro 1031 # $Header: /root/magellan-cvs/src/vmware-workstation/vmware.rc6,v 1.2 2010-04-25 23:13:32 niro Exp $
3 niro 12
4     #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5     #%start: 30
6     #%stop: 30
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13 niro 1031 source /etc/conf.d/rc
14 niro 12 source $rc_functions
15    
16     case "$1" in
17     start)
18     declare -i i=0
19     [ -x /etc/vmware/init.d/vmware ] && /etc/vmware/init.d/vmware start | while read output
20     do
21     if [[ ${i} -eq 0 ]]
22     then
23     SPACER=""
24     else
25     SPACER=" "
26     fi
27     [ -n "${output}" ] && echo -e ${COLOREDSTAR}"${SPACER}${output}"
28     ((i++))
29     done
30     unset i
31    
32     evaluate_retval
33     update_svcstatus $1
34     splash svc_started "$(basename $0)" 0
35     ;;
36    
37     stop)
38     declare -i i=0
39     [ -x /etc/vmware/init.d/vmware ] && /etc/vmware/init.d/vmware stop | while read output
40     do
41     if [[ ${i} -eq 0 ]]
42     then
43     SPACER=""
44     else
45     SPACER=" "
46     fi
47     [ -n "${output}" ] && echo -e ${COLOREDSTAR}"${SPACER}${output}"
48     ((i++))
49     done
50     unset i
51    
52     evaluate_retval
53     update_svcstatus $1
54     splash svc_stopped "$(basename $0)" 0
55     ;;
56    
57     restart)
58     $0 stop
59     sleep 1
60     $0 start
61     ;;
62    
63     *)
64     echo "Usage: $0 {start|stop|restart}"
65     exit 1
66     ;;
67     esac

Properties

Name Value
svn:executable *